简体   繁体   中英

What does `--save` do in NPM 5.0 +

In the past --save was used to add the package to the package.json , but as of NPM 5 installing adds packages by default: What is the --save option for npm install? . So does save do anything in NPM 5.0 +?

Is not necessary any more. It does not even appear in the npm documentation. But I think they leave the option to use if for back compatibility

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM