`Npm difference install --save-dev` and` npm install --save` of

npm install --save-devAnd npm install --savethe difference between

npm install mockjs --save-dev
We can look at [file] package.json
No -dev
npm install axios --save
There -dev

Not -devbe placed dependenciesinside, should be used to represent any time
there -devis on the devDependenciesinside, showing only used in the development environment

Fortunately, we must determine what use, if are placed dependencies, will cause the file ridge over, if are placed devDependencies, the online environment will lead to error

Guess you like

Origin blog.csdn.net/liuy_1314/article/details/83185346