NPM不会安装在Node v0.7.0-pre上

时间:2011-12-30 07:21:46

标签: node.js npm

我刚刚在主分支上安装了Node.js,当我为NPM做一行安装时,我得到了:

user:joyent-node-4b3824b simpleton$ curl http://npmjs.org/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
  101  7184  101  7184    0     0   3213      0  0:00:02  0:00:02 --:--:--  6193
tar=/usr/bin/tar
version:
bsdtar 2.6.2 - libarchive 2.6.2
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
You need node 0.4 || 0.5 || 0.6 to run this program.
node --version reports: v0.7.0-pre
Please upgrade node before continuing.
It failed

是否存在破解或者我应该降级Node.js?

1 个答案:

答案 0 :(得分:0)

如果真的想要处于最前沿(不是我特别推荐),你可以check out & install npm from the tar-js branchappears to support node 0.7

但就个人而言,我只是坚持使用节点0.6。