今天在安装nodejs时出现了the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is 2503/2502的报错,这还是第一次遇见此类报错情况,因此做以简单的记录,仅供大家参考。

一、报错呈现

error:the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is 2503
Windows安装Nodejs报2503、2502错误解决方案
error:the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is 2502
Windows安装Nodejs报2503、2502错误解决方案

二、报错原因

通过查阅相关资料,大多数人都将其归结为权限问题

三、解决办法

1、以管理员的的身份运行cmd命令(Win + X +A)

Windows安装Nodejs报2503、2502错误解决方案
2、用msiexec安装nodejs
在cmd窗口输入下载的node.js安装包所在位置(例:msiexec /package D:\software\node\node-v11.1.0-x64.msi)

Windows安装Nodejs报2503、2502错误解决方案
3、安装完成

Windows安装Nodejs报2503、2502错误解决方案

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-12-16
  • 2021-11-27
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2021-08-26
  • 2021-09-10
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案