タイトルの通り、以下のエラーが出て sqlite3 のインストールに失敗してしまいます…
node と npm のバージョンは以下の通りです。
npm: 6.14.9 node: v14.15.3
error
1npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 2npm WARN deprecated har-validator@5.1.5: this library is no longer supported 3 4> sqlite3@5.0.1 install /home/tanaka/project/test/node_modules/sqlite3 5> node-pre-gyp install --fallback-to-build 6 7node-pre-gyp WARN Using request for node-pre-gyp https download 8node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-linux-x64.tar.gz 9node-pre-gyp WARN Pre-built binaries not found for sqlite3@5.0.1 and node@14.15.3 (node-v83 ABI, glibc) (falling back to source compile with node-gyp) 10make: Entering directory '/home/tanaka/project/test/node_modules/sqlite3/build' 11 CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o 12 AR(target) Release/obj.target/../node-addon-api/nothing.a 13 COPY Release/nothing.a 14 ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c 15/bin/sh: 1: python: not found 16make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c] Error 127 17make: Leaving directory '/home/tanaka/project/test/node_modules/sqlite3/build' 18gyp ERR! build error 19gyp ERR! stack Error: `make` failed with exit code: 2 20gyp ERR! stack at ChildProcess.onExit (/home/tanaka/.volta/tools/image/node/14.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) 21gyp ERR! stack at ChildProcess.emit (events.js:315:20) 22gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) 23gyp ERR! System Linux 4.19.128-microsoft-standard 24gyp ERR! command "/home/tanaka/.volta/tools/image/node/14.15.3/bin/node" "/home/tanaka/.volta/tools/image/node/14.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6" 25gyp ERR! cwd /home/tanaka/project/test/node_modules/sqlite3 26gyp ERR! node -v v14.15.3 27gyp ERR! node-gyp -v v5.1.0 28gyp ERR! not ok 29node-pre-gyp ERR! build error 30node-pre-gyp ERR! stack Error: Failed to execute '/home/tanaka/.volta/tools/image/node/14.15.3/bin/node /home/tanaka/.volta/tools/image/node/14.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1) 31node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/tanaka/project/test/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 32node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) 33node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) 34node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) 35node-pre-gyp ERR! System Linux 4.19.128-microsoft-standard 36node-pre-gyp ERR! command "/home/tanaka/.volta/tools/image/node/14.15.3/bin/node" "/home/tanaka/project/test/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" 37node-pre-gyp ERR! cwd /home/tanaka/project/test/node_modules/sqlite3 38node-pre-gyp ERR! node -v v14.15.3 39node-pre-gyp ERR! node-pre-gyp -v v0.11.0 40node-pre-gyp ERR! not ok 41Failed to execute '/home/tanaka/.volta/tools/image/node/14.15.3/bin/node /home/tanaka/.volta/tools/image/node/14.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/tanaka/project/test/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1) 42npm WARN test@1.0.0 No description 43npm WARN test@1.0.0 No repository field. 44 45npm ERR! code ELIFECYCLE 46npm ERR! errno 1 47npm ERR! sqlite3@5.0.1 install: `node-pre-gyp install --fallback-to-build` 48npm ERR! Exit status 1 49npm ERR! 50npm ERR! Failed at the sqlite3@5.0.1 install script. 51npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 52 53npm ERR! A complete log of this run can be found in: 54npm ERR! /home/tanaka/.npm/_logs/2021-01-14T18_42_16_092Z-debug.log
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。