开发者

NPM install issues Ubuntu 11.04 [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

installing a fresh node with the following commands

sudo apt-get install git-core curl build-essential openssl libssl-dev
git clon开发者_JAVA百科e https://github.com/joyent/node.git && cd node
./configure 
make
make install
node -v
v0.5.0-pre

works without a glitch. When I try to install NPM i get:

>/tmp/node$ curl http://npmjs.org/install.sh | sudo sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3874  100  3874    0     0   3033      0  0:00:01  0:00:01 --:--:-- 22923
fetching: 

gzip: stdin: unexpected end of file
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
It failed
>

I am using a VirtualBox NAT networking with no special proxy / firewall in the way.

trying curl -s -L http://registry.npmjs.org/npm/latest i get {"error":"ucs","reason":"{bad_utf8_character_code}"}

which could hint to a problem on the NPM side??

Ralf


Try this:

git clone http://github.com/isaacs/npm.git
cd npm
sudo make install


It seems there is an issue with the NPM registry at the moment - I was getting the same error, installed using git, and then discovered that the registry is down too.

See https://github.com/isaacs/npm/issues for more about the registry being down - there could be an issue with the whole of NPM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜