繁体   English   中英

Node.js:如何安装NPM

[英]Node.js: How to install NPM

我在Windows 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

信息,如果一切正常就可以了

详细cli ['E:\\ node \\ node.exe',
详细cli'e:\\ github \\ npm \\ cli.js',
详细的cli“缓存”,
详细cli'clean']
信息使用npm@1.0.30
使用node@v0.5.7的信息
详细的配置文件C:\\ Documents and Settings \\ zhangchiqing.npmrc
详细的配置文件E:\\ etc \\ npmrc
呃! 找不到前缀目录
呃! 错误:ENOENT, ɹ ɡ。
呃! 'E:'
呃! 在以下位置报告整个日志:
呃! http://github.com/isaacs/npm/issues
呃! 或通过电子邮件发送至:
呃! npm-@googlegroups.com
呃!
呃! 系统Windows_NT 5.1.2600
呃! 命令“ E:\\ node \\ node.exe”“ e:\\ github \\ npm \\ cli.js”“缓存”“干净”
呃! cwd E:\\ github \\ npm
呃! 节点-v v0.5.7
呃! npm -v 1.0.30
详细退出[1,true]

这适用于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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM