簡體   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