感谢: http://blog.chinaunix.net/uid-20648927-id-3081948.html
http://www.infoq.com/cn/articles/nodejs-npm-install-config
1、NodeJS下载:http://nodejs.org/#download 直接安装即可
2、msysgit下载:http://msysgit.github.io/ 直接安装即可
3、npm 下载安装
打开msysgit
$ git clone --recursive git://github.com/isaacs/npm.git
Cloning into ‘npm‘...
remote: Reusing existing pack: 29538, done.
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 29579 (delta 7), reused 1 (delta 0)
Receiving objects: 100% (29579/29579), 16.07 MiB | 286.00 KiB/s, done.
Resolving deltas: 100% (14284/14284), done.
Checking connectivity... done.
Checking out files: 100% (1324/1324), done.
$ node cli.js install npm -gf
npm WARN using --force I sure hope you know what you are doing.
npm http GET https://registry.npmjs.org/npm
npm http 304 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-1.4.7.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-1.4.7.tgz
npm WARN package.json [email protected] No repository field.
c:\Program Files\nodejs\npm -> c:\Program Files\nodejs\node_modules\npm\bin\npm-
cli.js
[email protected]1.4.7 c:\Program Files\nodejs\node_modules\npm$ npm install underscore
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz
[email protected] node_modules\underscore$ npm -v
1.4.7
完毕!
Win7 之 NodeJS 安装,码迷,mamicode.com
时间: 2024-10-19 06:12:51