Home > Article > Web Front-end > How to deal with errors when installing Node.js in Windows
This time I will bring you Installation in WindowsNode.jsHow to handle errors, and how to handle errors when installing Node.js in WindowsNotes What are they? Here are actual cases. Let’s take a look.
Windows is really disgusting! ! ! Not only will there be a lot of junk files, but sometimes some software (normal software) cannot be installed for no apparent reason. A long time ago, I wanted to learn Koa2 and planned to upgrade the nodejs version to experience the new features of ES6 and ES7 such as aync and await. However, I couldn't install nodejs and I couldn't uninstall the old version of nodejs. I was at a loss and put it aside for a while. Time, tonight I want to take a look at D3 to prepare for learning, and use Koa to make a demonstration learning and practice project. I am determined to check the information and solve the nodejs installation error problem.
The hard work paid off and the problem was finally solved, so I recorded it in this article.
Directory permission problem?
First of all, I thought it was a permissions issue, so I set the permissions of both the directory to be installed and the Temp directory under Windos to full control, but it still didn't work, despair!
Set file directory permissions
When I was desperate, I saw an article on the Internet that perfectly solved the problem. It was still a permission issue!
Install with msiexec as administrator
1. Run cmd command as administrator (Win X, A)
Run cmd
as administrator 2. Install with msiexec
Install nodejs using msiexec
msiexec /package node-v8.7.0-64.msi
At this point, the installation is complete!
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
Bootstrap and Vue operation to add and delete user information
How does Yuansheng JS realize file asynchronous Upload
The above is the detailed content of How to deal with errors when installing Node.js in Windows. For more information, please follow other related articles on the PHP Chinese website!