美文网首页
npm -g install yarn 问题

npm -g install yarn 问题

作者: iVikings | 来源:发表于2024-09-03 10:32 被阅读0次

执行 npm -g install yarn
一直 卡在 idealTree:lib: sill idealTree buildDeps

  • 使用默认镜像
    将镜像源设置为默认的 npm 镜像源:
npm config set registry https://registry.npmjs.org/

或者,你也可以将镜像源删除,让 npm 使用默认的镜像源:

npm config delete registry
  • 改为新的淘宝镜像
npm config set registry https://registry.npmmirror.com/
  • 查看当前注册的镜像
npm config get registry

相关文章

网友评论

      本文标题:npm -g install yarn 问题

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