本文介绍了NPM 不安装任何东西:它挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我想用 NPM 安装一个模块时,它就会在那个阶段挂起:

Whenever I want to install a module with NPM, it hangs at that stage:

npm install express
npm http GET https://registry.npmjs.org/express

就是这样.它对我输入的任何东西都有这种行为,而不是 express.我以这种方式安装了 nodejsnvm(Ubuntu 13.10):

And that's it. It has that behavior for anything I input instead of express. I installed nodejs and nvm that way (Ubuntu 13.10):

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

我尝试在 Internet 和 GitHub 上查找,发现了一个关于 npm 在尝试安装模块时永远挂起的已解决问题.但这是一个非常老的问题.在我询问开发人员之前,我是否遗漏了一些明显的东西?

I tried looking on the Internet and GitHub and I found a closed issue about npm hanging forever when trying to install a module.. but it was a really old issue. Before I ask the developers, am I missing something obvious ?

我尝试同时编译 nodejs 和 npm,但结果是一样的.

I tried compiling both nodejs and npm but the result was the same.

npm install express -verbose -> http://pastebin.com/tGY3V6Ly错误:

npm info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=140072708810560:error:140770FC:SSL   routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:766:

推荐答案

NPM 最近遇到了服务器问题.尝试使用 -verbose 运行命令以检查并查看发生了什么,并耐心等待.

NPM has been having server issues of late. Try running the command with -verbose to check and see what is going on, and be patient.

这篇关于NPM 不安装任何东西:它挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 03:01