Home  >  Article  >  Web Front-end  >  What to do if Windows installation Node.js error: 2503, 2502

What to do if Windows installation Node.js error: 2503, 2502

小云云
小云云Original
2018-01-22 09:13:231518browse

This article mainly introduces to you the solutions to the error: 2503, 2502 when installing Node.js under Windows system. The article introduces the solution step by step in great detail. Friends who need it can refer to it. Below are the small Let's learn together, I hope it can help everyone.

Preface

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 it was finally solved, so I recorded it in this article.

Directory permission problem?

First of all, I wondered if 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, desperate!


Set file directory permissions

When I was desperate, I saw an article on the Internet that perfectly solved it. It was still a permission problem!

Use msiexec to install as an administrator

1. Run the cmd command as an administrator (Win + X, A)

Run cmd as administrator

2. Use msiexec to install

Use msiexec to install nodejs

msiexec /package node-v8.7.0-64.msi

At this point, the installation is complete!


View nodejs version

##Related recommendations:

Install vue -cli error 4058 solution example sharing

About Node using Sequlize to connect Mysql error: Access denied for user 'xxx'@'localhost'_node.js

How to solve the problem of irregular spaces and error reporting in vue.js during the writing process

The above is the detailed content of What to do if Windows installation Node.js error: 2503, 2502. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn