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 !!