美文网首页
cnpm与npm(个人笔记)

cnpm与npm(个人笔记)

作者: kevision | 来源:发表于2020-07-27 18:12 被阅读0次

原文链接: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 : 无法加载文件..."问题

image.png

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

image

2,打开了powershell命令行之后,输入

set-ExecutionPolicy RemoteSigned

然后更改权限为A

最后通过 get-ExecutionPolicy 查看当前的状态

image

完成。

相关文章

网友评论

      本文标题:cnpm与npm(个人笔记)

      本文链接:https://www.haomeiwen.com/subject/xzctrktx.html