admin管理员组

文章数量:1550528

        今天在安装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

error:the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is 2502

二、报错原因

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

三、解决办法

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


2、用msiexec安装nodejs
在cmd窗口输入下载的node.js安装包所在位置(例:msiexec /package D:\software\node\node-v11.1.0-x64.msi)


3、安装完成

本文标签: 解决方案错误nodejsWindows