互联网技术 · 2024年2月15日

优化npm install速度的方法

国外镜像会很慢

可用 get命令查看registry

npm congfig get registry

原版结果为

http://registry.npmjs.org

用set命令换成阿里的镜像就可以了

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

or

npm install –registry=https://registry.npm.taobao.org

–disturl=https://npm.taobao.org/mirrors/node

文章来源:田珊珊个人博客

来源地址:http://www.tianshan277.com/856.html

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册