温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

node.js express install on windows 7

发布时间:2020-08-08 14:18:27 来源:网络 阅读:370 作者:pgmia 栏目:web开发


一、测试平台


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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI