- Node.js Web Development
- David Herron
- 147字
- 2021-06-25 21:54:07
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.
- TypeScript Essentials
- 軟件項目估算
- Windows系統(tǒng)管理與服務(wù)配置
- Python從入門到精通(精粹版)
- 我的第一本算法書
- Django:Web Development with Python
- Raspberry Pi 2 Server Essentials
- JS全書:JavaScript Web前端開發(fā)指南
- Mastering Rust
- Jenkins Continuous Integration Cookbook(Second Edition)
- Learning Vaadin 7(Second Edition)
- Python語言實用教程
- Python3.5從零開始學(xué)
- Java編程從入門到精通
- Django 5企業(yè)級Web應(yīng)用開發(fā)實戰(zhàn)(視頻教學(xué)版)