npm install
Install Node packages. More information: https://docs.npmjs.com/cli/npm-install/.
- Install dependencies listed in
package.json:
npm
- Download a specific version of a package and add it to the list of dependencies in
package.json:
npm @
- Download the latest version of a package and add it to the list of dev dependencies in
package.json:
npm
- Download the latest version of a package and install it globally (set install location with
npm config set prefix):
npm
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
