我刚刚在主分支上安装了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?
答案 0 :(得分:0)
如果真的想要处于最前沿(不是我特别推荐),你可以check out & install npm from the tar-js branch,appears to support node 0.7。
但就个人而言,我只是坚持使用节点0.6。