Problems installing NPM Ubuntu 11.04

install a new node with the following commands

sudo apt-get install git-core curl build-essential openssl libssl-dev git clone https://github.com/joyent/node.git && cd node ./configure make make install node -v v0.5.0-pre 

works without fail. 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 NAT VirtualBox network without a special proxy / firewall.

try curl -s -L http://registry.npmjs.org/npm/latest i get {"error":"ucs","reason":"{bad_utf8_character_code}"}
who could hint at a problem on the NPM side?

Ralph

+7
source share
2 answers

Try the following:

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

There seems to be a problem with the NPM registry at the moment - I was getting the same error installed with git, and then found that the registry was not working either.

See https://github.com/isaacs/npm/issues to find out more about the registry - there may be a problem with all NPM.

0
source

All Articles