Node. js setup wizard ended prematurely solution to nodejs installation failure, prematurelynodejs

Source: Internet
Author: User

Node. js setup wizard ended prematurely solution to nodejs installation failure, prematurelynodejs
NodejsDownload from official website: Http://nodejs.org/download/

There are two file formats for downloading. One is mis, and the other is exe, which correspond to your operating system for downloading.

 

 

1. I downloaded the mis file, and an installation interface will appear during installation. It will be OK until Next.

 

The installation fails if I roll back the installation at the end of the installation period.

 

 

Then I searched for a lot of information on the Internet and did not meet the results. Some people said that the environment variables configured for windows Binary and npm were downloaded, and the results were OK.

 

Step 1:

1. Download windows Binary and go to the official website to download it. The downloaded file contains an installation file with the exe suffix.

Step 2:

1. It is best to select the latest version for downloading npm files on the official website.

2.: http://nodejs.org/dist/npm/

Step 3:

1.after the npmfile is decompressed, The node_modulesfile and the npm.htm command file will be generated. Put the just-downloaded node.exe file in the same directory, and then configure your environment variables.

 


2. select the environment variable and create a new variable named NODEJS_PATH and NODEJS_MODULE. NODEJS_PATH specifies my local nodejs directory, NODEJS_MODULE specifies the node_modules directory, and the variable value is F: \ Program Files \ nodejs \ node_modules

 

 


 

 

 

Now we have configured the environment variables! Now install nodejs

Step 4:

1. install express Open the cmd command line, use the command to locate to the node_modules directory, enter the command npm install express, note that you can use other two installation methods, express [install express to relative path] Or npm install express-g [install express to absolute path]

 

2. Enter node-v. If the publication ID is displayed, the installation is successful.

3. Run the following command to update nodejs: npm update npm-g.

 

 

We wish you a successful installation !!

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.