Installing under Windows with a Mac environment (poke me poke me) is similar.
1. Download node. js for Mac
Address: http://nodejs.org/download/
Watch if your system is 32-bit or 64-bit.
I downloaded the. msi format, or just double-click Next.
Currently the latest node. JS installation is complete including NPM.
When the installation is complete, add the installation directory to the environment variable path so that the node app can be executed anywhere.
2. Install Express.
--Global installation of NPM install Express-g
--Install the specified version
NPM install [email protected][version]--express 4.0 need to be installed separately Express-generator tool NPM install-g express-generator--Uninstall NPM Uninstall Express
--See also someone said remove can also delete, I tried OK
NPM Remove Express
If the network has an agent, the installation process will error as follows:
Then it is necessary to set up the proxy
-- View current NPM proxy settings npm config getproxy-- set the Agent NPM config set proxy for NPM [proxy address] [port]
This side of the proxy address must be HTTP/HTTPS start.
View the version of Express. "V" must be capitalized.
Express-v
If the command is not recognized below CMD, start--Menu--node.js Open the console, this way you can identify it.
Node.js,npm,express installed in the Windows environment