Node.js,npm,express installed in the Windows environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.