原文链接:https://www.cnblogs.com/500m/p/11634969.html
https://www.cnblogs.com/chendongbky/p/11125648.html
cnpm下载与切换
npm install -g cnpm --registry=https://registry.npm.taobao.org
设置使用淘宝cnpm
npm config set registry https://registry.npm.taobao.org
查看是否配置成功,成功后即可直接使用cnpm命令
npm config get registry
还原npm仓库
npm config set registry https://registry.npmjs.org
处理"cnpm : 无法加载文件..."问题

1.在win10 系统中搜索框 输入 Windos PowerShell
选择 管理员身份运行

2,打开了powershell命令行之后,输入
set-ExecutionPolicy RemoteSigned
然后更改权限为A
最后通过 get-ExecutionPolicy 查看当前的状态

完成。
网友评论