[英]Node.js: How to install NPM
I have cygwin and node.exe (0.5.7) installed on my window XP. 我在Windows XP上安装了cygwin和node.exe(0.5.7)。
When I git clone npm(1.0.30), cd npm, then "make install"
, there are lots of node_modules cloning. 当我
git clone npm(1.0.30), cd npm, then "make install"
,有很多node_modules克隆。
But it stopped when execute "node cli.js install git+https://github.com/isaac/ronnjs.git"
. 但是当执行
"node cli.js install git+https://github.com/isaac/ronnjs.git"
时,它停止了。
The following is my npm-debug.log . 以下是我的npm-debug.log 。
info it worked if it ends with ok 信息,如果一切正常就可以了
verbose cli [ 'E:\\node\\node.exe',
详细cli ['E:\\ node \\ node.exe',
verbose cli 'e:\\github\\npm\\cli.js',详细cli'e:\\ github \\ npm \\ cli.js',
verbose cli 'cache',详细的cli“缓存”,
verbose cli 'clean' ]详细cli'clean']
info using npm@1.0.30信息使用npm@1.0.30
info using node@v0.5.7使用node@v0.5.7的信息
verbose config file C:\\Documents and Settings\\zhangchiqing.npmrc详细的配置文件C:\\ Documents and Settings \\ zhangchiqing.npmrc
verbose config file E:\\etc\\npmrc详细的配置文件E:\\ etc \\ npmrc
ERR!呃! prefix directory not found
找不到前缀目录
ERR!呃! Error: ENOENT, ɹ ɡ
错误:ENOENT, ɹ ɡ。
ERR!呃! 'E:'
'E:'
ERR!呃! Report this entire log at:
在以下位置报告整个日志:
ERR!呃! http://github.com/isaacs/npm/issues
http://github.com/isaacs/npm/issues
ERR!呃! or email it to:
或通过电子邮件发送至:
ERR!呃! npm-@googlegroups.com
npm-@googlegroups.com
ERR!呃!
ERR!呃! System Windows_NT 5.1.2600
系统Windows_NT 5.1.2600
ERR!呃! command "E:\\node\\node.exe" "e:\\github\\npm\\cli.js" "cache" "clean"
命令“ E:\\ node \\ node.exe”“ e:\\ github \\ npm \\ cli.js”“缓存”“干净”
ERR!呃! cwd E:\\github\\npm
cwd E:\\ github \\ npm
ERR!呃! node -v v0.5.7
节点-v v0.5.7
ERR!呃! npm -v 1.0.30
npm -v 1.0.30
verbose exit [ 1, true ]详细退出[1,true]
This works in Ubuntu. 这适用于Ubuntu。 You have to use older version of node.
您必须使用旧版本的节点。
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.