[Go] nodejs installation and NPM installation failed solution

Source: Internet
Author: User
Tags install node

Install node environment today, encountered the problem of installation, prompt error roll back,because of a Error.node.js Setup wizard ended prematurely; finally found the bottom of this article, a good solution to my problem.

Article Source: http://caibaojian.com/nodejs-roll-back.html

Original link: http://caibaojian.com/nodejs-roll-back.html

InstallationNodejs

The answer is found here: Install in Windows, briefly below the installation steps: ·

1. Download Nodejs engine, 32bit version or 64bit version

2. Download the latest version of NPM ZIP format package: http://nodejs.org/dist/npm/

3, in a certain location of the hard disk, such as the D disk under the establishment of a file Nodejs, the above two downloaded things are put here, npm to decompress.

4. Configure two environment variables: one is the directory D:\\nodejs to add Node.exe on PATH, one is to increase the environment variable Node_path, and the value is d:\\nodejs\\node_modules.


5, Win7 environment configuration in the system "Advanced system Settings" advanced "environment variable" system variable to find path, edit plus D:\\nodejs, plus node_path variables and values.

6. Install Express: Open cmd command line, use command line to navigate to this node directory, type the instruction NPM install express[install Express to relative path] or NPM install express-g[installation Express to absolute path ]

Here, you enter node-v in the command line if the output Nodejs version is installed successfully.

The version of Update Nodejs can be entered at the command line:npm update npm -g

[Go] nodejs installation and NPM installation failed solution

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.