Nodejs version Control

Source: Internet
Author: User

This method modifies the configuration based on 1190000004855835: The git address of the NVMW used HTTPS://GITHUB.COM/HAKOBERA/NVMW the environment variable configuration reference http://jingyan.baidu.com/ Article/3ea51489e1c2b752e61bbad0.html (can be skipped, configured in the source code) modify the content as follows 1. Modify the Nvmw.bat file 137 lines, x64 to win-x642. Modify the Fget.js file 47 lines, XMLHTTP Change to ServerXMLHTTP3. Modify Get_npm.js file       6th line to var npm_pkg_json_url = ' Http://npm.taobao.org/mirrors/node /index.json ';      8th line to var nvmw_npm_mirror = ' http://npm.taobao.org/mirrors/npm ';      Change the 18th line to var nvmw_iojs_org_mirror = ' Http://npm.taobao.org/mirrors/iojs ';      44th, 45 to Var Pkguri =npm_ pkg_json_url;      50th Row downloadnpmzip (Json.parse (pkg) version), instead            var _pkg = json.parse (pkg);          for (var i = 0,n=_pkg.length;i<n;i++) {              var obj = _pkg[i];              if (obj.version = = Bi nversion) {                  DownloadNpmzip (OBJ.NPM);             }         } start using: Into the local git repository in cmd NVMW Folder Command:    &NBSP;NVMW Show all available commands     &NBSP;NVMW install [version] installs the corresponding version of nodejs      NVMW ls installed Nodejs version list    &NBSP;NVMW use [version] switch to the corresponding version such as:     c:users\administrator\git \GIT&GT;NVMW Install 5.9.1    &NBSP;C:USERS\ADMINISTRATOR\GIT\GIT&GT;NVMW ls     c:users\ ADMINISTRATOR\GIT\GIT&GT;NVMW use 4.4.2        //installed globally, NVMW Use command can be executed under the Master folder of our project

Nodejs Version Control

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.