npm 注册表再次关闭,导致 npm install
无法正常工作。
问题:我们如何使用npm
从npm镜像拉取包?有推荐的 npm 镜像吗?
最佳答案
使用npm镜像
npm set registry http://ec2-46-137-149-160.eu-west-1.compute.amazonaws.com
您可以稍后使用 npm set registry 重置它
npm set registry https://registry.npmjs.org/
然后正常使用:
npm install express
你也可以看到这个gist有关上述解决方案的更多信息。
关于javascript - 如何使用 NPM 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19967376/