NPM安装问题Ubuntu 11.04

前端之家收集整理的这篇文章主要介绍了NPM安装问题Ubuntu 11.04前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
使用以下命令安装新节点
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

工作没有故障.当我尝试安装NPM时,我得到:

>/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
>

我正在使用VirtualBox NAT网络,没有特殊的代理/防火墙.

尝试curl -s -L http://registry.npmjs.org/npm/latest我得到{“error”:“ucs”,“reason”:“{bad_utf8_character_code}”}
这可能暗示NPM方面存在问题?

拉尔夫

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

猜你在找的Ubuntu相关文章