简体   繁体   English

Windows 10 上的 npm install 卡在 fetchMetadata 上

[英]npm install on windows 10 gets stuck at fetchMetadata

I have node.js installed on my Windows 10 machine.我的 Windows 10 机器上安装了 node.js。 Node version is 6.10.3 and npm version is 3.10.10. Node 版本是 6.10.3,npm 版本是 3.10.10。 When I run npm install, it gets stuck at "[ ..............] - fetchMetadata: sill mapToRegistry uri registry.npmjs.org/zone.js" Can someone please suggest what might be the solution for this?当我运行 npm install 时,它卡在“[ ................] - fetchMetadata: sill mapToRegistry uri registry.npmjs.org/zone.js”有人可以建议可能是什么对此的解决方案? I have tried with both the Node Windows Binary Package (.zip) and the Node Windows Installer (.msi).我已经尝试过 Node Windows 二进制包 (.zip) 和 Node Windows Installer (.msi)。 I have been trying from my home network, so I believe proxy is not the issue.我一直在我的家庭网络上尝试,所以我相信代理不是问题。

Thanks谢谢

Clear npm cache using the below command and then install使用以下命令清除 npm 缓存,然后安装

npm cache clean npm 缓存清理

Clear npm cache using the below command and then install使用以下命令清除 npm 缓存,然后安装

if you're debugging an issue with the installer, you can use npm install --cache /tmp/empty-cache to use a temporary cache instead of nuking the actual one.如果您正在调试安装程序的问题,您可以使用npm install --cache /tmp/empty-cache来使用临时缓存而不是实际缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM