npm安装:idealTree:npm: sill idealTree buildDeps

原因一:是因为node的默认安装环境在国外,需要修改镜像地址。

采用taobao的镜像地址,进入cmd之后输入:npm config set registry https://registry.npm.taobao.org

如果依然慢,需将npm源切换到新的:registry.npmmirror.com

npm的命令

npm config set registry https://registry.npmmirror.com

yarn的命令

yarn config set registry https://registry.yarnpkg.com/

查看是否安装成功

npm config get registry

 

posted @ 2024-02-19 14:06  娜乌西卡在路上  阅读(3951)  评论(0)    收藏  举报