Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between "npm run dev" and "npm start"

I am very new to Node and AngularJS.

Can I know the difference between npm run dev and npm start commands in node terminal?

like image 726
iqbalmp Avatar asked Nov 07 '18 15:11

iqbalmp


People also ask

What is the difference between npm run and npm start?

npm start is the short form for npm run start . So, its one and the same thing. Show activity on this post.

What is npm run dev for?

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.

What is npm run start?

npm start: npm start script is used to execute the defined file in it without typing its execution command.

What is the difference between npm run watch and npm run dev?

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.


1 Answers

You can look it up in the package.json. The section which you are looking for is named scripts.

like image 152
Pavel Polyakov Avatar answered Oct 02 '22 20:10

Pavel Polyakov