node.js express install on windows 7

一、测试平台

操作系统Windows 7 简体中文旗舰版X64

二、安装步骤

1.install node-v0.10.32-x64.msi

默认组件全部选择,安装路径C:\Program Files\nodejs

C:\Users\Administrator>node -v

v0.10.32

C:\Users\Administrator>npm -v

1.4.28

2.安装express:

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>npm install -g express@3.5.0

npm WARN deprecated static-favicon@1.0.0: use serve-favicon module

C:\Users\Administrator\AppData\Roaming\npm\express -> C:\Users\Administrator\App

Data\Roaming\npm\node_modules\express\bin\express

express@3.5.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\express

├── methods@0.1.0

├── merge-descriptors@0.0.2

├── debug@0.8.1

├── cookie-signature@1.0.3

├── fresh@0.2.2

├── range-parser@1.0.0

├── buffer-crc32@0.2.1

├── cookie@0.1.1

├── mkdirp@0.3.5

├── send@0.2.0 (mime@1.2.11)

├── commander@1.3.2 (keypress@0.1.0)

└── connect@2.14.1 (response-time@1.0.0, pause@0.0.1, method-override@1.0.0,

static-favicon@1.0.0, morgan@1.0.0, bytes@0.2.1, serve-static@1.0.2, basic-auth-

connect@1.0.0, qs@0.6.6, raw-body@1.1.3, vhost@1.0.0, connect-timeout@1.0.0, err

orhandler@1.0.0, cookie-parser@1.0.1, csurf@1.0.0, express-session@1.0.2, serve-

index@1.0.1, multiparty@2.2.0, compression@1.0.0)

C:\Users\Administrator>express -V

3.5.0


安装提示:

npm install --g express@3.5.0 //安装指定版本express

npm install express -g //安装最新版express,默认的是express4.0,但是4.0版本截止

20141024止,无法作为命令行执行,建议使用3.5.0版本。

npm remove express -g //删除express


本文出自 “yiyi” 博客,请务必保留此出处http://heyiyi.blog.51cto.com/205455/1567530

node.js express install on windows 7

上一篇:Windows 2008 R2 Server激活方法


下一篇:Windows Media Foundation学习笔记1——MF核心概念