小编Ral*_*und的帖子

NPM注册表替代http://registry.npmjs.org/npm

不幸的是,http://registry.npmjs.org/npm导致了

$ npm install mime
npm ERR! Error: ucs {bad_utf8_character_code}: mime
npm ERR!     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:177:16)
npm ERR!     at IncomingMessage.emit (events.js:81:20)
npm ERR!     at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR!     at Socket.ondata (http.js:1228:22)
npm ERR!     at Socket._onReadable (net.js:684:27)
npm ERR!     at IOWatcher.onReadable [as callback] (net.js:177:10)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "mime"
npm ERR! …
Run Code Online (Sandbox Code Playgroud)

node.js npm

17
推荐指数
2
解决办法
2万
查看次数

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
Run Code Online (Sandbox Code Playgroud)

工作没有故障.当我尝试安装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 …
Run Code Online (Sandbox Code Playgroud)

ubuntu tar node.js npm

7
推荐指数
1
解决办法
8066
查看次数

标签 统计

node.js ×2

npm ×2

tar ×1

ubuntu ×1