学习 nodejs - 环境安装配置
安装指南在此https://github.com/joyent/node/wiki/Installation
Installing on Windows
Manual install
Installing Node manually is recommended as a workaround for any problems with automatic install. You also have much better understanding of the things that happen if you do those things yourself.
The http://nodejs.org/dist/latest/ directory contains executables of the last version of Node.js engine (the engine only, i.e. without npm):
32bit version: http://nodejs.org/dist/latest/node.exe
64bit version: http://nodejs.org/dist/latest/x64/node.exe
The http://nodejs.org/dist/npm/ directory contains the latest .zip
archive of npm (such as npm-1.1.16.zip
when npm v1.1.16 was the latest).
Manual installation steps:
Make a clean directory and add that directory to your system's
PATH
variable.Download the latest
node.exe
to that directory.Download the latest npm's
.zip
file and unpack its contents to the same directory.
Then, with the usual help of PATH
, you'll be able to run scripts (node scriptname.js
) and install modules (npm install modulename
) in any directory.
Manual update
To update Node, download the latest http://nodejs.org/dist/latest/node.exe (orhttp://nodejs.org/dist/latest/x64/node.exe for 64bit systems) and replace your oldnode.exe
with it.
To update npm, run the npm update npm -g
command.
Automatic install (with Microsoft Installer)
The http://nodejs.org/dist/latest/ directory contains the latest .msi
package (such as node-v0.6.15.msi
when Node v0.6.15 was the latest) that you may use to install both Node.js engine and npm.
由于我的是64位,而且懒得手动安装,就直接跑到http://nodejs.org/dist/latest/x64/
下载.msi文件自动安装。安装成功后,可以看到环境变量path里有配nodejs,可以执行node/npm命令了。
nodeJS打造mvc框架学习例子:http://www.cnblogs.com/ppoo24/archive/2012/02/08/2343064.html