First, test platform
Operating system Windows 7 Simplified Chinese flagship edition X64
Second, installation steps
1.install Node-v0.10.32-x64.msi
Default Components all selected, installation path C:\Program Files\nodejs
C:\users\administrator>node-v
v0.10.32
C:\users\administrator>npm-v
1.4.28
2. Install Express:
Microsoft Windows [version 6.1.7601]
Copyright (c) Microsoft Corporation. All rights reserved.
C:\USERS\ADMINISTRATOR>NPM install-g [email protected]
NPM WARN deprecated [email protected]: Use Serve-favicon module
C:\Users\Administrator\AppData\Roaming\npm\express-C:\USERS\ADMINISTRATOR\APP
Data\roaming\npm\node_modules\express\bin\express
[Email protected] C:\Users\Administrator\AppData\Roaming\npm\node_modules\express
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected] ([email protected])
├──[email protected] ([email protected])
└──[email protected] ([email protected], [email protected], [email protected],
[Email protected], [email protected], [email protected], [email protected], basic-auth-
[Email protected], [email protected], [email protected], [email protected], [email protected], err
[Email protected], [email protected], [email protected], [email protected], serve-
[Email protected], [email protected], [email protected])
C:\users\administrator>express-v
3.5.0
Installation tips:
NPM install--g [email protected]//installation of the specified version of Express
NPM Install EXPRESS-G//installs the latest version of Express, the default is express4.0, but version 4.0 expires
20141024, cannot be executed as command line, we recommend using 3.5.0 version.
NPM Remove Express-g//Delete Express
This article is from the "Yiyi" blog, make sure to keep this source http://heyiyi.blog.51cto.com/205455/1567530
node. JS Express Install on Windows 7