官术网_书友最值得收藏!

Automatically updating package.json dependencies

With npm@5 (also known as npm version 5), one change was that it's no longer required to add --save to the npm install command. Instead, npm by default acts as if you ran the command with --save, and will automatically add the dependency to your package.json. This is meant to simplify using npm, and it is arguably more convenient that npm now does this. At the same time it can be very surprising and inconvenient for npm to go ahead and modify package.json for you. The behavior can be disabled by using the --no-save flag. This behavior can be permanently disabled using the following:

$ npm config set save false

The npm config command supports a long list of settable options for tuning behavior of npm. See npm help config for the documentation, and npm help 7 config for the list of options.

主站蜘蛛池模板: 襄城县| 荣成市| 宣汉县| 喜德县| 庆安县| 郧西县| 犍为县| 桃园县| 壶关县| 太谷县| 长葛市| 鸡东县| 长宁区| 峨山| 英吉沙县| 龙川县| 镇平县| 仙桃市| 荣成市| 建平县| 淮南市| 车险| 弥渡县| 寻甸| 徐闻县| 太和县| 青龙| 宁陵县| 舟曲县| 普兰店市| 陵川县| 吴江市| 潮安县| 镇巴县| 黑龙江省| 南充市| 永善县| 台北市| 榆社县| 延庆县| 张家口市|