程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了在 VPS 上安装依赖项时出现 SQLite 问题大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决在 VPS 上安装依赖项时出现 @R_696_8789@e 问题?

开发过程中遇到在 VPS 上安装依赖项时出现 @R_696_8789@e 问题的问题如何解决?下面主要结合日常开发的经验,给出你关于在 VPS 上安装依赖项时出现 @R_696_8789@e 问题的解决方法建议,希望对你解决在 VPS 上安装依赖项时出现 @R_696_8789@e 问题有所启发或帮助;

我正在尝试将用 TypeScript 开发的 discord 机器人托管到我从 galaxygate 拥有的 VPS 中,该 VPS 与 Ubuntu 20.04 一起运行。

Git 已经安装,所以我克隆并拉出了我在 GitHub 上托管的项目。然后我尝试npm install我的依赖项。

以下是 package.Json 中的依赖项:

{
  "devDependencIEs": {
    "@types/node": "^14.14.22","@types/ws": "^7.4.0","rimraf": "^3.0.2","ts-node-dev": "^1.1.1","tsconfig-paths": "^3.9.0","typescript": "^4.1.3"
  },"dependencIEs": {
    "consola": "^2.15.0","discord-aKairo": "^8.1.0","discord.Js": "github:discordJs/discord.Js","dotenv": "^8.2.0","@R_696_8789@e3": "^5.0.1","ts-node": "^9.1.1","typeorm": "^0.2.30"
  }
}

当我安装依赖项时出现了一些错误,因此通过 nvm 我将节点版本设置为适合 @R_696_8789@e3 的节点版本:

  • node -v => v14.15.4
  • npm -v => 6.14.10

这是npm i的踪迹:

> @R_696_8789@e3@5.0.1 install /root/Main/Perceval/node_modules/@R_696_8789@e3
> node-pre-gyp install --fallBACk-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN TrIEd to download(403): https://mapBox-node-binary.s3.amazonaws.com/@R_696_8789@e3/v5.0.1/nAPI-v6-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binarIEs not found for @R_696_8789@e3@5.0.1 and node@14.15.4 (node-v83 ABI,glibC) (falling BACk to source compile with node-gyp)
make: Entering directory '/root/Main/Perceval/node_modules/@R_696_8789@e3/build'
  CC(target) Release/obj.target/nothing/../node-addon-API/nothing.o
make: cc: Command not found
make: *** [../node-addon-API/nothing.target.mk:107: Release/obj.target/nothing/../node-addon-API/nothing.o] Error 127
make: Leaving directory '/root/Main/Perceval/node_modules/@R_696_8789@e3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` Failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/root/Main/Perceval/node_modules/node-gyp/lib/build.Js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.Js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.Js:277:12)
gyp ERR! System linux 5.4.0-42-generic
gyp ERR! command "/root/.nvm/versions/node/v14.15.4/bin/node" "/root/Main/Perceval/node_modules/node-gyp/bin/node-gyp.Js" "build" "--fallBACk-to-build" "--module=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64/node_@R_696_8789@e3.node" "--module_name=node_@R_696_8789@e3" "--module_path=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64" "--nAPI_version=7" "--node_abi_nAPI=nAPI" "--nAPI_build_version=6" "--node_nAPI_label=nAPI-v6"
gyp ERR! cwd /root/Main/Perceval/node_modules/@R_696_8789@e3
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/root/.nvm/versions/node/v14.15.4/bin/node /root/Main/Perceval/node_modules/node-gyp/bin/node-gyp.Js build --fallBACk-to-build --module=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64/node_@R_696_8789@e3.node --module_name=node_@R_696_8789@e3 --module_path=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64 --nAPI_version=7 --node_abi_nAPI=nAPI --nAPI_build_version=6 --node_nAPI_label=nAPI-v6' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/Main/Perceval/node_modules/node-pre-gyp/lib/util/compile.Js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.Js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.Js:1048:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.Js:288:5)
node-pre-gyp ERR! System linux 5.4.0-42-generic
node-pre-gyp ERR! command "/root/.nvm/versions/node/v14.15.4/bin/node" "/root/Main/Perceval/node_modules/.bin/node-pre-gyp" "install" "--fallBACk-to-build"
node-pre-gyp ERR! cwd /root/Main/Perceval/node_modules/@R_696_8789@e3
node-pre-gyp ERR! node -v v14.15.4
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/root/.nvm/versions/node/v14.15.4/bin/node /root/Main/Perceval/node_modules/node-gyp/bin/node-gyp.Js build --fallBACk-to-build --module=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64/node_@R_696_8789@e3.node --module_name=node_@R_696_8789@e3 --module_path=/root/Main/Perceval/node_modules/@R_696_8789@e3/lib/binding/nAPI-v6-linux-x64 --nAPI_version=7 --node_abi_nAPI=nAPI --nAPI_build_version=6 --node_nAPI_label=nAPI-v6' (1)
npm WARN optional SKIPPing OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents):
npm WARN notsup SKIPPing OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EliFECYCLE
npm ERR! errno 1
npm ERR! @R_696_8789@e3@5.0.1 install: `node-pre-gyp install --fallBACk-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @R_696_8789@e3@5.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-02-05T15_36_09_631Z-deBUG.log

这里是nmp i -D @R_696_8789@e3

npm WARN deprecated request@2.88.2: request has been deprecated,see https://github.com/request/request/issues/3142
npm WARN deprecated har-valIDator@5.1.5: this library is no longer supported

> @R_696_8789@e3@5.0.1 install /root/Main/Perceval/node_modules/@R_696_8789@e3
> node-pre-gyp install --fallBACk-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN TrIEd to download(403): https://mapBox-node-binary.s3.amazonaws.com/@R_696_8789@e3/v5.0.1/nAPI-v6-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binarIEs not found for @R_696_8789@e3@5.0.1 and node@14.15.4 (node-v83 ABI,"arch":"x64"})

npm ERR! code EliFECYCLE
npm ERR! errno 1
npm ERR! @R_696_8789@e3@5.0.1 install: `node-pre-gyp install --fallBACk-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @R_696_8789@e3@5.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-02-05T15_37_32_352Z-deBUG.log

解决方法

错误不在python中,而是在@R_696_8789@e3包本身中。

恢复到 v5.0.0 将解决这个问题

npm install @R_696_8789@e3@5.0.0
@H_674_62@

大佬总结

以上是大佬教程为你收集整理的在 VPS 上安装依赖项时出现 SQLite 问题全部内容,希望文章能够帮你解决在 VPS 上安装依赖项时出现 SQLite 问题所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:问题