Install run CNPM on Windows instead of NPM

Source: Internet
Author: User

Now it's time to take note of the problem with this kind of SB system.

1. Find the market to build a catalogue npmconfig (whatever the name)

2. Batch execution npm config set prefix "C:\NPMCONFIG\NPM"

NPM config set globalconfig "C:\NPMCONFIG\NPM\ETC\NPMRC"

NPM config set globalignorefile "C:\npmConfig\npm\etc\npmignore"

3. Perform NPM install-g cnpm--registry=http://r.cnpmjs.org

4. Add C:\NPMCONFIG\NPM to the PATH environment variable (delete the original existing. \NPM)

5. Execute CNPM install-g Supervisor

6. Execute CNPM install-g [email protected] (can express command to generate v3.x Exprss project after installation)

Execute CNPM install-g express-generator (after installation can express command to generate v4.x Exprss project)

After 7 full use of cnpm ....

aside, when you run the Express website, the latest version of Express will appear with an error saying that you can't find .... \public\ Favicon.ico file, the solution is also simple, find that directory, create a public directory below, and then copy a favicon.ico file into it, you do the ICO file is also OK.

Install run CNPM on Windows instead of NPM

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.