python - SQLITE 3安装错误

标签 python node.js sqlite

我对尝试通过命令行安装东西一无所知。我最近安装了Node(最新版本,版本ID为9.20)。我正在尝试安装/ setup GECKO进行自动交易。并且它需要安装SQLite3。我正在按照以下说明从该链接设置壁虎:

https://www.youtube.com/watch?v=R68IwVujju8

我正在从命令行输入的步骤:npm = install

但是,在开始下载某些文件后,它会到达几个“ ERR!”。陈述并切断。这是输出:

(P.S。我尝试仅使用“ npm install sqlite3”,而我尝试使用“ npm install sqlite3”,最后都给出相同的错误。

C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable> npm install sqlite3


  sqlite3@3.1.13安装C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3
  节点预gyp安装-回退构建


节点预石膏错误!试图下载(403):https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v59-win32-x64.tar.gz
节点预石膏错误!找不到针对sqlite3@3.1.13和node@9.2.0(node-v59 ABI)的预构建二进制文件(回退到使用node-gyp进行源编译)

C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3>(如果未定义)npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \ .. .. \ node_modules \ node-gyp \ bin \ node-gyp.js“ clean)else(节点”“ clean)

C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3>(如果未定义)npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \ .. .. \ node_modules \ node-gyp \ bin \ node-gyp.js“配置--fallback-to-build --module = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32-x64 \ node_sqlite3.node --module_name = node_sqlite3 --module_path = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node -v59-win32-x64 --msvs_version = 2017)else(节点“”配置--fallback-to-build --module = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32-x64 \ node_sqlite3.node --module_name = node_sqlite3 --module_path = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node -v59-win32-x64 --msvs_version = 2017)
糟糕!配置错误
糟糕!堆栈错误:找不到Python可执行文件“ C:\ Users \ fable187 \ AppData \ Local \ Programs \ Python \ Python35 \ python.EXE”,则可以设置PYTHON env变量。
糟糕!堆叠在PythonFinder.failNoPython(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ configure.js:483:19)
糟糕!放在PythonFinder中。 (C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ configure.js:508:16)
糟糕!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ graceful-fs \ polyfills.js:284:29
糟糕! FSReqWrap.oncomplete上的堆栈(fs.js:166:21)
糟糕!系统Windows_NT 10.0.16299
糟糕!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“配置”“ --fallback-to -build“” --module = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32-x64 \ node_sqlite3.node“”-模块名称= node_sqlite3“” --module_path = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32-x64“” --msvs_version = 2017“
糟糕! CWD C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3
糟糕!节点-v v9.2.0
糟糕!节点gyp -v v3.6.2
糟糕!不好
节点预石膏错误!建立错误
节点预石膏错误!堆栈错误:无法执行'node-gyp.cmd configure --fallback-to-build --module = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node -v59-win32-x64 \ node_sqlite3.node --module_name = node_sqlite3 --module_path = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32- x64 --msvs_version = 2017'(1)
节点预石膏错误!堆栈在ChildProcess上。 (C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ lib \ util \ compile.js:83:29)
节点预石膏错误!堆栈在ChildProcess.emit(events.js:159:13)
节点预石膏错误!在也许关闭处堆叠(internal / child_process.js:943:16)
节点预石膏错误!堆栈位于Process.ChildProcess._handle.onexit(internal / child_process.js:220:5)
节点预石膏错误!系统Windows_NT 10.0.16299
节点预石膏错误!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ bin \ node-pre-pre- gyp“”安装“” --fallback-to-build“
节点预石膏错误! CWD C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3
节点预石膏错误!节点-v v9.2.0
节点预石膏错误!节点pre-gyp -v v0.6.38
节点预石膏错误!不好
无法执行'node-gyp.cmd configure --fallback-to-build --module = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59- win32-x64 \ node_sqlite3.node --module_name = node_sqlite3 --module_path = C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable \ node_modules \ sqlite3 \ lib \ binding \ node-v59-win32-x64- msvs_version = 2017'(1)
npm ERR!代码ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.13安装:node-pre-gyp install --fallback-to-build
npm ERR!退出状态1
npm ERR!
npm ERR!在sqlite3@3.1.13安装脚本处失败。
npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。

npm ERR!可以在以下位置找到此运行的完整日志:
npm ERR! C:\ Users \ fable187 \ AppData \ Roaming \ npm-cache_logs \ 2017-12-03T08_00_31_371Z-debug.log

C:\ Users \ fable187 \ Downloads \ gekko-stable \ gekko-stable>

最佳答案

Sqlite3尚未与NodeJS V9.2.0兼容(请查看问题:https://github.com/mapbox/node-sqlite3/issues/902)。

您需要将nodeJS版本降级到V8.9.3。

提示:要轻松更改节点版本,可以对Windows https://github.com/coreybutler/nvm-windows使用NVM

Python问题:这是由于“ npm install”正在尝试(使用python)编译位于node-v59-win32-x64.tar.gz中的源代码。由于未在计算机上安装Python,因此出现错误。

关于python - SQLITE 3安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47616490/

相关文章:

python - 计算 Flask 中的登录尝试次数

javascript - 成功的 AJAX post 请求后页面不会呈现

sqlite - 是什么导致这个 sqlite 外键不匹配?

Android sqlite 外键引用多行

node.js - 使用 webpack-dev-server 运行 Node 应用程序时设置环境变量?

SQLite 接受 SQL 语法中不存在的连接类型

python将多个子图图形保存为pdf

python - rllib 使用自定义注册环境

python - 错误 409 : Requested entity already exists

python - NodeJs : Get output of python-shell to send back to client