当前位置:首页 » 《随便一记》 » 正文

npm 设置淘宝镜像、nrm、nodemon

9 人参与  2023年05月03日 13:45  分类 : 《随便一记》  评论

点击全文阅读


一、 设置淘宝镜像

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

点击全文阅读


本文链接:http://zhangshiyu.com/post/60450.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1