Node development environment Setup (Windows)

Source: Internet
Author: User

In Windows , using a tool called NVMW instead of NVM, while installing CNPM to directly use the Taobao Mirror, the speed is very good

$ D:

$ cd git

$ git clone https://github.com/cnpm/nvmw.git

Set path="d:\git\nvmw;%path%"

Re-open the terminal, enter NVMW to see that the command has been performed properly

Install node

NVMW Install 0.12.0

Will error download xxx failed

The solutions found online are :

The error is on "Fget.js".  The next source file needs to be modified. ' Msxml2.xmlhttp ' instead of ' msxml2.serverxmlhttp ' NOTE: I am win7 64-bit system.

Source Document

Installing Iojs

$ NVMW Install iojs-1.4.2

NVMW ls

when NPM installs a package, use --registry to specify the mirror

$ NPM Install KOA--registry=http://registry.npm.taobao.org

the image of node dist

$ npm Install microtime--registry=http://registry.npm.taobao.org--disturl=http://npm.taobao.org/mirrors/node

GitHub is slow, or its resources host is blocked, and you can solve it by simply mapping the hosts:

Installing cnpm

NPM install-g cnpm--registry=http://registry.npm.taobao.org

185.31.16.184 github.global.ssl.fastly.net

Node development environment Setup (Windows)

Related Article

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.