mac安装淘宝镜像cnpm

安装cnpm需要一个最高权限

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org--verbose

此时会提示让你输入一个密码,即你的用户开机密码,输入回车即可,如果出现下面的信息(最下面几行)说明安装成功:

npm info lifecycle [email protected]~postinstall: [email protected]

npm verb unlock done using /Users/lijia/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging

[email protected]

added 692 packages in 29.865s

npm verb exit [ 0, true ]

npm info ok

好了,输入下面的命令查询一下吧

cnpm -v

作者:独行侠_ef93

链接:https://www.jianshu.com/p/c43725f7606e

来源:

你可能感兴趣的:(mac安装淘宝镜像cnpm)