質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

SQLite

SQLiteはリレーショナルデータベース管理システムの1つで、サーバーではなくライブラリとして使用されている。

Q&A

解決済

1回答

8713閲覧

npm install sqlite3 に失敗する

退会済みユーザー

退会済みユーザー

総合スコア0

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

SQLite

SQLiteはリレーショナルデータベース管理システムの1つで、サーバーではなくライブラリとして使用されている。

0グッド

0クリップ

投稿2021/01/14 18:52

タイトルの通り、以下のエラーが出て 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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

>/bin/sh: 1: python: not found

とあるので、pythonがないのではないでしょうか。

投稿2021/01/26 14:13

digitarhythm

総合スコア15

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問