Node.js:如何安装NPM

Leo*_*ang 2 cygwin node.js npm

我在我的窗口XP上安装了cygwin和node.exe(0.5.7).

当我git clone npm(1.0.30), cd npm, then "make install",有很多node_modules克隆.

但它在执行时停止了"node cli.js install git+https://github.com/isaac/ronnjs.git".

以下是我的npm-debug.log.

如果它以ok结束,它是否有效

使用npm@1.0.30 信息使用详细信息cli ['E:\node \node.exe',
详细cli'e :\ github \npm\cli.js',
详细cli'cache',详细cli'clean
']
信息
node@v0.5.7
详细配置文件C:\ Documents and Settings\zhangchiqing.npmrc
verbose配置文件E:\ etc \npmrc
ERR!
错误的前缀目录!错误:ENOENT, ɹ ɡ ERR
!'E:'
错误!报告整个日志:
ERR! http://github.com/isaacs/npm/issues
错误!或发送电子邮件至:
ERR!npm-@googlegroups.com
错误!
呃!系统Windows_NT 5.1.2600
ERR!命令"E:\node \node.exe""e:\ github \npm\cli.js""cache""clean"
ERR!cwd E:\ github \npm
ERR!node -v v0.5.7
ERR!npm -v 1.0.30
详细退出[1,true]

Ch4*_*Ass 7

这适用于Ubuntu.您必须使用旧版本的节点.

sudo apt-get install -y g++ libssl-dev apache2-utils curl git-core
git clone git://github.com/joyent/node.git
cd node
git checkout v0.4.11
./configure
make
sudo make install
node -v
curl https://npmjs.org/install.sh | sudo sh
npm -v
Run Code Online (Sandbox Code Playgroud)