视窗上的"Failed at the sqlite3@3.1.13 install script 'node-pre-gyp install --fallback-to-build'"



我正在尝试安装gekko,我会收到以下错误:

node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@6.9.4 (node-v48 ABI) (falling back to source compile with node-gyp)
C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3>if not defined npm_config_node_gyp (node "C:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin\....node_modulesnode-gypbinnode-gyp.js" clean )  else (node "" clean )
C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3>if not defined npm_config_node_gyp (node "C:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin\....node_modulesnode-gypbinnode-gyp.js" configure --fallback-to-build "--module=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64node_sqlite3.node" --module_name=node_sqlite3 "--module_path=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64" )  else (node "" configure --fallback-to-build "--module=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64node_sqlite3.node" --module_name=node_sqlite3 "--module_path=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64" )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibconfigure.js:449:14)
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibconfigure.js:404:11
gyp ERR! stack     at C:Program Filesnodejsnode_modulesnpmnode_modulesgraceful-fspolyfills.js:264:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64"
gyp ERR! cwd C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3node_modulesnode-pre-gyplibutilcompile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3
node-pre-gyp ERR! node -v v6.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersSOBER CHECKDownloadsgekko-developgekko-developnode_modulessqlite3libbindingnode-v48-win32-x64' (1)
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sqlite3"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.13 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:UsersSOBER CHECKDownloadsgekko-developgekko-developnpm-debug.log

我在Windows 10上,带有节点版本6.9.4和NPM版本3.10.10。

请帮助 - 我该怎么办来解决此问题并完成安装Gekko?我还在GitHub repo上发布了这个问题,但我没有太多希望从那里回复。

任何帮助使此示例更为最小(如最小可验证的示例(或所需的任何额外信息都将不胜感激;我对此一无所知,无法提出一个容易回答的问题。

安装sqlite 4.0.1而不是3.1.13为我修复了

您的链接github问题通过更新为 sqlite3@^4.0.1解决了解决方案。但是,有关您问题的评论者正在使用节点V9或更高版本的Node V10版本,因此此sqlite3版本升级可能无法解决您的问题。Gekko已更新为gekko v0.6.3中的sqlite3 v4.0.2,因此将其升级到该版本或更高版本,重新安装,然后您将在编写时使用最新版本的sqlite3,其中包含您的问题的分辨率。

所有的话,看着您的错误消息,看来您的路径上没有可用的python

Error: Can't find Python executable "python", you can set the PYTHON env variable.

因此,尝试这两种方法 - 升级Gekko并确保安装Python并在您的环境中可用。

最新更新