npm 设置淘宝镜像、nrm、nodemon

一、 设置淘宝镜像

1.通过cnpm使用淘宝镜像:

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

2.将npm设置为淘宝镜像:

npm config set registry https://registry.npm.taobao.org

 3. 查看cnpm镜像设置:

npm config get registry

4.查看cnpm镜像设置:

cnpm config get registry

    在查看镜像这里我们会遇到win10不让运行脚本的安全策略,需要以管理员权限打开powershell或cmd 执行

set-executionpol

猜你喜欢

转载自blog.csdn.net/meihuacike/article/details/127759297