gpt4 book ai didi

javascript - Node-GYP 失败,退出代码为 : 1

转载 作者:行者123 更新时间:2023-11-29 23:31:17 26 4
gpt4 key购买 nike

我必须在 electron.atom 中使用 node-usb 才能使用,我正在尝试安装 node-gyp,但我遇到了问题。

gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Name\AppData\Roamin
g\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_proces
s.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\name\\
AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd C:\Users\Name\Desktop\electron-quick-start
gyp ERR! node -v v6.10.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

我在 stackoverflow 上发现很少有相同的票证,我都试过了。仍然没有成功。

有没有人找到解决这个问题的方法。

最佳答案

我建议您按照本 Github Issue 中的步骤缩小失败的可能原因。来自 node-gyp:

xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools

希望这对您有所帮助。

关于javascript - Node-GYP 失败,退出代码为 : 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47285532/

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