I have been installing packages and just noticed that not many of my packages are in my package.json? I always do --save
when I install. In fact I just installed about 10 dependencies and none saved.
Has anyone run into this before?
Try to do --save-dev
when installing your npm package. It will save all the devDependencies that are used in development. --save
just save the dependencies. May be there is no dependencies that are dependent on your project.
Have you run npm init
before?
Try to run npm init
then npm install xxxx --save
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.