gpt4 book ai didi

node.js - 吉普错误!堆栈错误 : `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe`

转载 作者:搜寻专家 更新时间:2023-10-31 23:19:34 24 4
gpt4 key购买 nike

我在运行 Jenkins 作业时遇到以下错误。我已经安装了 MSBuild 15 和 17 并指定了正确的路径。

任何人都可以阐明这一点吗?问题出在哪里。谢谢。

(x86)\Jenkins\workspace\POS4> npm install
> pos4@1.0.10 install C:\Program Files (x86)\Jenkins\workspace\POS4
> node-gyp rebuild


C:\Program Files (x86)\Jenkins\workspace\POS4>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Program Files (x86)\Jenkins\workspace\POS4\build\..\build\Release\binding.node
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\Jenkins\workspace\POS4\build\binding.vcxproj(20,3):

**error MSB4019: The imported project "C:\Micr
osoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file
exists on disk.**

gyp ERR! build error

**gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1**

gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Windows_NT 10.0.17134

最佳答案

确保您没有使用 Node 12,因为 node-gyp 会失败。版本 11.15.0 是最新的工作版本。

关于node.js - 吉普错误!堆栈错误 : `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52089305/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com