Solved during the installation of node: The installer has encountered an unexpected error installing this package

1. Problem description:

An error was reported during the installation of node v14.19.0the version :

The installer has encountered an unexpected errorinstalling this package

insert image description here

insert image description here

First, the full name of the problem is:

The installer has encountered an unexpected errorinstalling this package. This may indicate a problem with this package. The error code is 2503/2502;

Second, the Chinese translation of the question is:

安装程序在安装此程序包时遇到错误。这可能表明此程序包有问题。错误代码为2503/2502

2. Problem analysis:

After checking, I think the problem is:

系统排斥,需要自己安装的条件下,必须要以管理员的身份进行安装操作;

Another way of saying it is:

出错原因是因为更新了windows系统或者重装了WIN10之后盘序号乱了,先安装TorttoiseGit之后改了盘符序号,导致之前的无法使用,然后删掉了之前的TortoiseGit。删除是没办法直接删掉的,因为盘符改了之后安装位置找不到了。

3. Problem solving:

A. Open as an administrator cmd:

insert image description here

B. Enter the address of nodethe file :

insert image description here

The address I want to install is:D:\04Node\node-v14.19.0-x64.msi

insert image description here
C. At this time, it is found that it can be successfully installed:

insert image description here
insert image description here

4. Summary:

First, where there is something wrong or inappropriate, please give me some pointers and exchanges!
Second, if you are interested, you can pay more attention to this column (Vue (Vue2+Vue3) interview must-have column):https://blog.csdn.net/weixin_43405300/category_11525646.html?spm=1001.2014.3001.5482

Guess you like

Origin blog.csdn.net/weixin_43405300/article/details/131087608