快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

node.jsexpressinstallonwindows7

一、测试平台

在二道等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站建设、网站设计 网站设计制作定制网站建设,公司网站建设,企业网站建设,品牌网站制作,网络营销推广,外贸网站制作,二道网站建设费用合理。

操作系统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

3.安装 bower

C:\Users\Administrator>npm install bower

npm WARN prefer global bower@1.3.12 should be installed with -g

bower@1.3.12 node_modules\bower

├── is-root@1.0.0

├── junk@1.0.0

├── stringify-object@1.0.0

├── which@1.0.5

├── chmodr@0.1.0

├── osenv@0.1.0

├── archy@0.0.2

├── abbrev@1.0.5

├── graceful-fs@3.0.4

├── opn@1.0.0

├── bower-logger@0.2.2

├── lockfile@1.0.0

├── nopt@3.0.1

├── rimraf@2.2.8

├── lru-cache@2.5.0

├── q@1.0.1

├── bower-endpoint-parser@0.2.2

├── retry@0.6.0

├── tmp@0.0.23

├── semver@2.3.2

├── p-throttler@0.1.0 (q@0.9.7)

├── request-progress@0.3.0 (throttleit@0.0.2)

├── bower-json@0.4.0 (intersect@0.0.3, deep-extend@0.2.11, graceful-fs@2.0.3)

├── shell-quote@1.4.2 (array-filter@0.0.1, array-map@0.0.0, array-reduce@0.0.

0, jsonify@0.0.0)

├── fstream@1.0.2 (inherits@2.0.1)

├── mkdirp@0.5.0 (minimist@0.0.8)

├── promptly@0.2.0 (read@1.0.5)

├── chalk@0.5.0 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-colo

r@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)

├── fstream-ignore@1.0.1 (inherits@2.0.1, minimatch@1.0.0)

├── glob@4.0.6 (inherits@2.0.1, minimatch@1.0.0, once@1.3.1)

├── bower-config@0.5.2 (osenv@0.0.3, graceful-fs@2.0.3, optimist@0.6.1)

├── tar-fs@0.5.2 (pump@0.3.5, tar-stream@0.4.7)

├── cardinal@0.4.0 (redeyed@0.4.4)

├── request@2.42.0 (caseless@0.6.0, forever-agent@0.5.2, json-stringify-safe@

5.0.0, aws-sign2@0.5.0, oauth-sign@0.4.0, stringstream@0.0.4, tunnel-agent@0.4.0

, node-uuid@1.4.1, qs@1.2.2, mime-types@1.0.2, bl@0.9.3, tough-cookie@0.12.1, ha

wk@1.1.1, http-signature@0.10.0, form-data@0.1.4)

├── decompress-zip@0.0.8 (nopt@2.2.1, mkpath@0.1.0, touch@0.0.2, readable-str

eam@1.1.13, binary@0.3.0)

├── bower-registry-client@0.2.1 (graceful-fs@2.0.3, lru-cache@2.3.1, request-

replay@0.2.0, async@0.2.10, mkdirp@0.3.5, request@2.27.0)

├── mout@0.9.1

├── update-notifier@0.2.0 (semver-diff@0.1.0, string-length@0.1.2, configstor

e@0.3.1, latest-version@0.2.0)

├── inquirer@0.7.1 (figures@1.3.3, mute-stream@0.0.4, through@2.3.6, lodash@2

.4.1, readline2@0.1.0, rx@2.3.14, cli-color@0.3.2)

├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)

└── insight@0.4.3 (object-assign@1.0.0, async@0.9.0, chalk@0.5.1, os-name@1.0

.1, lodash.debounce@2.4.1, tough-cookie@0.12.1, configstore@0.3.1, inquirer@0.6.

0)

C:\Users\Administrator>bower --version

1.3.12

安装git Git-1.8.3-preview20130601.exe

选择安装选项 1

添加“C:\Program Files (x86)\Git\bin”到系统环境变量PATH


文章题目:node.jsexpressinstallonwindows7
文章出自:http://6mz.cn/article/jdehgp.html

其他资讯