Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js npm安装通常在下载后挂起_Node.js - Fatal编程技术网

Node.js npm安装通常在下载后挂起

Node.js npm安装通常在下载后挂起,node.js,Node.js,当我运行npm安装时, 下载一些东西后,它经常挂起, 我等了这么久,但还是无法下载 像这样 npm http 200 https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz npm http 200 https://registry.npmjs.org/async/-/async-0.1.22.tgz npm http 200 https://registry.npmjs.org/exit/-/exit-0.1.2.tgz np

当我运行npm安装时, 下载一些东西后,它经常挂起, 我等了这么久,但还是无法下载

像这样

npm http 200 https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.1.22.tgz
npm http 200 https://registry.npmjs.org/exit/-/exit-0.1.2.tgz
npm http 200 https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz
npm http 200 https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz
npm http 200 https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz
npm http 200 https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz
npm http 200 https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.13.tgz

npm http 200 https://registry.npmjs.org/async
然后什么也没发生,我该怎么办?重新安装,或者有解决npm安装问题的解决方案吗?

试试看

npm cache clean
然后

rm -rf node_modules

npm install

删除
节点\u模块
目录并重新启动。