I am very new to Node and AngularJS.
Can I know the difference between npm run dev
and npm start
commands in node terminal?
npm start is the short form for npm run start . So, its one and the same thing. Show activity on this post.
The npm run dev command is a generic npm command that you can find in many modern web application projects. This command is used to run the dev script defined in the project's package. json file. To know what is exactly being run by the command, first you need to open the package.
npm start: npm start script is used to execute the defined file in it without typing its execution command.
The difference between dev and watch is the dev command will compile the code then exit while the watch command will compile the components then watch the files and recompile when one of them changes.
You can look it up in the package.json
. The section which you are looking for is named scripts
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With