代码拉取完成,页面将自动刷新
---
tags: [ packaging ]
---
# Every command shown here can be used with the `-g` switch for global scope
# To install a package in the current directory:
npm install <package>
# To install a package, and save it in the `dependencies` section of `package.json`:
npm install --save <package>
# To install a package, and save it in the `devDependencies` section of `package.json`:
npm install --save-dev <package>
# To show outdated packages in the current directory:
npm outdated
# To update outdated packages:
npm update
# To update `npm` (will override the one shipped with Node.js):
npm install -g npm
# To uninstall a package:
npm uninstall <package>
# use mirror
# https://npm.taobao.org/mirrors
# https://developer.aliyun.com/mirror/NPM
npm install -g cnpm --registry=https://registry.npm.taobao.org
NPM_CONFIG_ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ npm install
npm install phantomjs --phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ npm install -g electron
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。