您好,登錄后才能下訂單哦!
一、測試平臺
操作系統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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。