A
A
Alexander Grigoriev2017-03-06 23:35:18
HTML
Alexander Grigoriev, 2017-03-06 23:35:18

npm start - missing script: start why?

Installed node.js, less, gulp and gulp-less. The gulp less command works, compiles less to css. But npm start is not. Why?
Been stuck on this for a week now....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey B., 2017-03-06
@AlexanderGrigoriyev

It is written - there is no start script.
In package.json , in the scripts section, there should be a switch/command that will be used via npm.

"scripts": {
    "start": "gulp",
},

K
Konstantin Kitmanov, 2017-03-06
@k12th

The npm start command executes the script named start in the scripts section of package.json. If there is nothing there (or if there is an error), then here is the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question