npm源修改
AI摘要Kimi Chat
在使用npm安装项目时,默认源在国外,导致速度贼慢甚至安装失败,这时可以通过以下命令修改源:
npm --registry https://registry.npm.taobao.org install xxx
npm config set registry https://registry.npm.taobao.org
通过以下命令查看是否修改成功:
npm config get registry
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 逸风亭!
评论
TwikooGiscus