今天,我尝试下载包quick.db。 npm失败并发送以下错误:
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\אריאל שמילוביץ\Documents\GitHub\HighProBot-2.0\node_modules\integer
gyp ERR! node -v v14.8.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer@3.0.1 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer@3.0.1 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\אריאל שמילוביץ\AppData\Roaming\npm-cache\_logs\2020-08-31T20_05_46_973Z-debug.log
npm WARN botjs@1.0.0 No description
npm WARN botjs@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer@3.0.1 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer@3.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我在线阅读了一些有关该问题的信息,并意识到应该运行该命令:
npm i --global windows-build-tools --vs2015
它没有用。 npm发送相同的错误。 读取错误后,我意识到应该运行该命令:
npm run build-release
但是当我运行命令时,npm发出了另一个问题:
npm ERR! missing script: build-release
缺少脚本后,我使用以下命令下载了构建发行包:
npm i build-release
但这并不能解决问题 如果有人知道问题出在哪里,请帮助我。
答案 0 :(得分:0)
尝试运行npm rebuild
,它应该可以解决软件包下载错误的问题