首页 > 其他 > 详细

node 源

时间:2021-07-10 16:23:14      阅读:52      评论:0      收藏:0      [点我收藏+]

1.查看原本的镜像地址

npm get registry

https://registry.npmjs.org/

设成淘宝的

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

将npm替换为cnpm

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

安装yarn

cnpm install yarn -g 全局安装yarn

2.换成原来的

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

针对mac 设置默认node版本

首先切换到 你的版本号

nvm use 8.10.0

之后设置微默认的版本

nvm alias default 8.10.0

node 源

原文:https://www.cnblogs.com/boxmvc/p/14993669.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!