cheat-fork-echo/cheat/cheatsheets/npm

23 lines
604 B
Plaintext
Raw Normal View History

2016-09-09 10:05:22 +02:00
# Every command shown here can be used with the `-g` switch for global scope
# Install a package in the current directory
npm install <package>
# Install a package, and save it in the `dependencies` section of `package.json`
npm install --save <package>
# Install a package, and save it in the `devDependencies` section of `package.json`
npm install --save-dev <package>
# Show outdated packages in the current directory
npm outdated
# Update outdated packages
npm update
# Update `npm` (will override the one shipped with Node.js)
npm install -g npm
# Uninstall a package
2016-10-02 23:23:42 +02:00
npm uninstall <package>