I practiced the vue+webpack front-end project these days, and then I kept getting the error of npm run dev failure, even if it was a good project before, I kept reporting errors. According to the way of npm install on the Internet, it doesn’t seem to work. I know today. I found that adding the save parameter after npm install can start stably.
Write it down first
command | meaning |
---|---|
npm install -g | Global installation (this means that the installation package is not in your project directory, but in the default installation package directory of node.js |
npm install -save | Custom installation, the installation package is in the directory, it automatically adds the module and version number to the dependencies section |
npm install -save dev | It seems to have the same meaning as npm install -save. Refer to https://www.cnblogs.com/WebNewer/p/7724465.html |