Содержание
- npm install fails #758
- Comments
- Unable to npm install on Windows (64-bit) Node v8 #961
- Comments
npm install fails #758
npm ERR! Darwin 16.3.0
npm ERR! argv «/usr/local/Cellar/node/7.3.0/bin/node» «/usr/local/bin/npm» «install»
npm ERR! node v7.3.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@3.1.1 install: node-pre-gyp install —fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.1 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! /Users/herson/dev/electron-sqlite3/npm-debug.log
npm-debug.txt
The text was updated successfully, but these errors were encountered:
similar issue. see dump below.
$ sudo npm install sqlite3 -g
sqlite3@3.1.8 install /usr/lib/node_modules/sqlite3
node-pre-gyp install —fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.8/node-v48-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.8 and node@6.9.4 (node-v48 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user «root» does not have permission to access the dev dir «/root/.node-gyp/6.9.4»
gyp WARN EACCES attempting to reinstall using temporary dev dir «/usr/lib/node_modules/sqlite3/.node-gyp»
make: Entering directory ‘/usr/lib/node_modules/sqlite3/build’
make: *** No rule to make target ‘../.node-gyp/6.9.4/include/node/common.gypi’, needed by ‘Makefile’. Stop.
make: Leaving directory ‘/usr/lib/node_modules/sqlite3/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.38-v7+
gyp ERR! command «/usr/bin/nodejs» «/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «build» «—fallback-to-build» «—module=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm/node_sqlite3.node» «—module_name=node_sqlite3» «—module_path=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm»
gyp ERR! cwd /usr/lib/node_modules/sqlite3
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 ‘/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build —fallback-to-build —module=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm/node_sqlite3.node —module_name=node_sqlite3 —module_path=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.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 Linux 4.4.38-v7+
node-pre-gyp ERR! command «/usr/bin/nodejs» «/usr/lib/node_modules/sqlite3/node_modules/.bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /usr/lib/node_modules/sqlite3
node-pre-gyp ERR! node -v v6.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build —fallback-to-build —module=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm/node_sqlite3.node —module_name=node_sqlite3 —module_path=/usr/lib/node_modules/sqlite3/lib/binding/node-v48-linux-arm’ (1)
npm ERR! Linux 4.4.38-v7+
npm ERR! argv «/usr/bin/nodejs» «/usr/bin/npm» «install» «sqlite3» «-g»
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@3.1.8 install: node-pre-gyp install —fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.8 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! /home/pi/npm-debug.log
Assistance would be greatly appreciated. updated, dist-upgraded, npm install npm -g etc tried
I managed to find a work-around for the problem
run the installation of sqlite3 with the —unsafe-perm setting
sudo npm install —unsafe-perm -g sqlite3
it provides the necessary permissions to node-pre-gyp to do what it has to.
—unsafe-perm didn’t work for me so I had to install a previous version (3.1.4)
and —unsafe-perm solve the problem
I set npm set PYTHON=D:locationofpython and installed the latest Microsoft Build Tools and it worked
I get this error when installing with npm install —no-bin-links which is required for supporting windows hosts in vagrant npm/npm#7308
Источник
Unable to npm install on Windows (64-bit) Node v8 #961
I’ve suddenly run into issues installing sqlite3 on a Windows 10, 64-bit machine with the latest version of Node 8 (v8.11.1). I’m getting the same issue with both sqlite3 v3.1.13 and v4.0.0.
I’ve been using v3.1.13 successfully for months with node v8 without issue. So, something must have recently changed to cause this issue.
#825 (which @springmeyer closed on 30 May 2017) leads me to believe this should work, despite the readme only listing Node.js v4-7 as supported platforms.
I’ve pasted the error I’m getting below (sorry it’s so long, I decided to follow the advice in https://github.com/mapbox/node-sqlite3/wiki/Binaries and use —log-level=info ).
Any chance you can help me understand what’s going wrong?
preinstall: abbrev@1.1.1 npm info lifecycle ansi-regex@2.1.1
preinstall: ansi-regex@2.1.1 npm info lifecycle aproba@1.2.0
preinstall: aproba@1.2.0 npm info lifecycle balanced-match@1.0.0
preinstall: balanced-match@1.0.0 npm info lifecycle chownr@1.0.1
preinstall: chownr@1.0.1 npm info lifecycle code-point-at@1.1.0
preinstall: code-point-at@1.1.0 npm info lifecycle concat-map@0.0.1
preinstall: concat-map@0.0.1 npm info lifecycle brace-expansion@1.1.11
preinstall: brace-expansion@1.1.11 npm info lifecycle console-control-strings@1.1.0
preinstall: console-control-strings@1.1.0 npm info lifecycle core-util-is@1.0.2
preinstall: core-util-is@1.0.2 npm info lifecycle deep-extend@0.4.2
preinstall: deep-extend@0.4.2 npm info lifecycle delegates@1.0.0
preinstall: delegates@1.0.0 npm info lifecycle detect-libc@1.0.3
preinstall: detect-libc@1.0.3 npm info lifecycle fs.realpath@1.0.0
preinstall: fs.realpath@1.0.0 npm info lifecycle has-unicode@2.0.1
preinstall: has-unicode@2.0.1 npm info lifecycle iconv-lite@0.4.19
preinstall: iconv-lite@0.4.19 npm info lifecycle inherits@2.0.3
preinstall: inherits@2.0.3 npm info lifecycle ini@1.3.5
preinstall: ini@1.3.5 npm info lifecycle isarray@1.0.0
preinstall: isarray@1.0.0 npm info lifecycle minimatch@3.0.4
preinstall: minimatch@3.0.4 npm info lifecycle ignore-walk@3.0.1
preinstall: ignore-walk@3.0.1 npm info lifecycle minimist@0.0.8
preinstall: minimist@0.0.8 npm info lifecycle mkdirp@0.5.1
preinstall: mkdirp@0.5.1 npm info lifecycle ms@2.0.0
preinstall: ms@2.0.0 npm info lifecycle debug@2.6.9
preinstall: debug@2.6.9 npm info lifecycle npm-bundled@1.0.3
preinstall: npm-bundled@1.0.3 npm info lifecycle npm-packlist@1.1.10
preinstall: npm-packlist@1.1.10 npm info lifecycle number-is-nan@1.0.1
preinstall: number-is-nan@1.0.1 npm info lifecycle is-fullwidth-code-point@1.0.0
preinstall: is-fullwidth-code-point@1.0.0 npm info lifecycle object-assign@4.1.1
preinstall: object-assign@4.1.1 npm info lifecycle os-homedir@1.0.2
preinstall: os-homedir@1.0.2 npm info lifecycle os-tmpdir@1.0.2
preinstall: os-tmpdir@1.0.2 npm info lifecycle osenv@0.1.5
preinstall: osenv@0.1.5 npm info lifecycle nopt@4.0.1
preinstall: nopt@4.0.1 npm info lifecycle path-is-absolute@1.0.1
preinstall: path-is-absolute@1.0.1 npm info lifecycle process-nextick-args@2.0.0
preinstall: process-nextick-args@2.0.0 npm info lifecycle minimist@1.2.0
preinstall: minimist@1.2.0 npm info lifecycle safe-buffer@5.1.1
preinstall: safe-buffer@5.1.1 npm info lifecycle sax@1.2.4
preinstall: sax@1.2.4 npm info lifecycle needle@2.2.0
preinstall: needle@2.2.0 npm info lifecycle semver@5.5.0
preinstall: semver@5.5.0 npm info lifecycle set-blocking@2.0.0
preinstall: set-blocking@2.0.0 npm info lifecycle signal-exit@3.0.2
preinstall: signal-exit@3.0.2 npm info lifecycle string_decoder@1.0.3
preinstall: string_decoder@1.0.3 npm info lifecycle strip-ansi@3.0.1
preinstall: strip-ansi@3.0.1 npm info lifecycle string-width@1.0.2
preinstall: string-width@1.0.2 npm info lifecycle strip-json-comments@2.0.1
preinstall: strip-json-comments@2.0.1 npm info lifecycle rc@1.2.6
preinstall: rc@1.2.6 npm info lifecycle util-deprecate@1.0.2
preinstall: util-deprecate@1.0.2 npm info lifecycle readable-stream@2.3.5
preinstall: readable-stream@2.3.5 npm info lifecycle sqlite3@4.0.0
preinstall: sqlite3@4.0.0 npm info lifecycle node-pre-gyp@0.9.0
preinstall: node-pre-gyp@0.9.0 npm info lifecycle nan@2.9.2
preinstall: nan@2.9.2 npm info lifecycle tar@4.4.0
preinstall: tar@4.4.0 npm info lifecycle minizlib@1.1.0
preinstall: minizlib@1.1.0 npm info lifecycle fs-minipass@1.2.5
preinstall: fs-minipass@1.2.5 npm info lifecycle minipass@2.2.1
preinstall: minipass@2.2.1 npm info lifecycle yallist@3.0.2
preinstall: yallist@3.0.2 npm info lifecycle rimraf@2.6.2
preinstall: rimraf@2.6.2 npm info lifecycle glob@7.1.2
preinstall: glob@7.1.2 npm info lifecycle inflight@1.0.6
preinstall: inflight@1.0.6 npm info lifecycle once@1.4.0
preinstall: once@1.4.0 npm info lifecycle wrappy@1.0.2
preinstall: wrappy@1.0.2 npm info lifecycle npmlog@4.1.2
preinstall: npmlog@4.1.2 npm info lifecycle gauge@2.7.4
preinstall: gauge@2.7.4 npm info lifecycle wide-align@1.1.2
preinstall: wide-align@1.1.2 npm info lifecycle are-we-there-yet@1.1.4
preinstall: are-we-there-yet@1.1.4 npm info linkStuff abbrev@1.1.1 npm info linkStuff ansi-regex@2.1.1 npm info linkStuff aproba@1.2.0 npm info linkStuff balanced-match@1.0.0 npm info linkStuff chownr@1.0.1 npm info linkStuff code-point-at@1.1.0 npm info linkStuff concat-map@0.0.1 npm info linkStuff brace-expansion@1.1.11 npm info linkStuff console-control-strings@1.1.0 npm info linkStuff core-util-is@1.0.2 npm info linkStuff deep-extend@0.4.2 npm info linkStuff delegates@1.0.0 npm info linkStuff detect-libc@1.0.3 npm info linkStuff fs.realpath@1.0.0 npm info linkStuff has-unicode@2.0.1 npm info linkStuff iconv-lite@0.4.19 npm info linkStuff inherits@2.0.3 npm info linkStuff ini@1.3.5 npm info linkStuff isarray@1.0.0 npm info linkStuff minimatch@3.0.4 npm info linkStuff ignore-walk@3.0.1 npm info linkStuff minimist@0.0.8 npm info linkStuff mkdirp@0.5.1 npm info linkStuff ms@2.0.0 npm info linkStuff debug@2.6.9 npm info linkStuff npm-bundled@1.0.3 npm info linkStuff npm-packlist@1.1.10 npm info linkStuff number-is-nan@1.0.1 npm info linkStuff is-fullwidth-code-point@1.0.0 npm info linkStuff object-assign@4.1.1 npm info linkStuff os-homedir@1.0.2 npm info linkStuff os-tmpdir@1.0.2 npm info linkStuff osenv@0.1.5 npm info linkStuff nopt@4.0.1 npm info linkStuff path-is-absolute@1.0.1 npm info linkStuff process-nextick-args@2.0.0 npm info linkStuff minimist@1.2.0 npm info linkStuff safe-buffer@5.1.1 npm info linkStuff sax@1.2.4 npm info linkStuff needle@2.2.0 npm info linkStuff semver@5.5.0 npm info linkStuff set-blocking@2.0.0 npm info linkStuff signal-exit@3.0.2 npm info linkStuff string_decoder@1.0.3 npm info linkStuff strip-ansi@3.0.1 npm info linkStuff string-width@1.0.2 npm info linkStuff strip-json-comments@2.0.1 npm info linkStuff rc@1.2.6 npm info linkStuff util-deprecate@1.0.2 npm info linkStuff readable-stream@2.3.5 npm info linkStuff are-we-there-yet@1.1.4 npm info linkStuff wide-align@1.1.2 npm info linkStuff gauge@2.7.4 npm info linkStuff npmlog@4.1.2 npm info linkStuff wrappy@1.0.2 npm info linkStuff once@1.4.0 npm info linkStuff inflight@1.0.6 npm info linkStuff glob@7.1.2 npm info linkStuff rimraf@2.6.2 npm info linkStuff yallist@3.0.2 npm info linkStuff minipass@2.2.1 npm info linkStuff fs-minipass@1.2.5 npm info linkStuff minizlib@1.1.0 npm info linkStuff tar@4.4.0 npm info linkStuff nan@2.9.2 npm info linkStuff node-pre-gyp@0.9.0 npm info linkStuff sqlite3@4.0.0 npm info lifecycle abbrev@1.1.1
install: abbrev@1.1.1 npm info lifecycle ansi-regex@2.1.1
install: ansi-regex@2.1.1 npm info lifecycle aproba@1.2.0
install: aproba@1.2.0 npm info lifecycle balanced-match@1.0.0
install: balanced-match@1.0.0 npm info lifecycle chownr@1.0.1
install: chownr@1.0.1 npm info lifecycle code-point-at@1.1.0
install: code-point-at@1.1.0 npm info lifecycle concat-map@0.0.1
install: concat-map@0.0.1 npm info lifecycle brace-expansion@1.1.11
install: brace-expansion@1.1.11 npm info lifecycle console-control-strings@1.1.0
install: console-control-strings@1.1.0 npm info lifecycle core-util-is@1.0.2
install: core-util-is@1.0.2 npm info lifecycle deep-extend@0.4.2
install: deep-extend@0.4.2 npm info lifecycle delegates@1.0.0
install: delegates@1.0.0 npm info lifecycle detect-libc@1.0.3
install: detect-libc@1.0.3 npm info lifecycle fs.realpath@1.0.0
install: fs.realpath@1.0.0 npm info lifecycle has-unicode@2.0.1
install: has-unicode@2.0.1 npm info lifecycle iconv-lite@0.4.19
install: iconv-lite@0.4.19 npm info lifecycle inherits@2.0.3
install: inherits@2.0.3 npm info lifecycle ini@1.3.5
install: ini@1.3.5 npm info lifecycle isarray@1.0.0
install: isarray@1.0.0 npm info lifecycle minimatch@3.0.4
install: minimatch@3.0.4 npm info lifecycle ignore-walk@3.0.1
install: ignore-walk@3.0.1 npm info lifecycle minimist@0.0.8
install: minimist@0.0.8 npm info lifecycle mkdirp@0.5.1
install: mkdirp@0.5.1 npm info lifecycle ms@2.0.0
install: ms@2.0.0 npm info lifecycle debug@2.6.9
install: debug@2.6.9 npm info lifecycle npm-bundled@1.0.3
install: npm-bundled@1.0.3 npm info lifecycle npm-packlist@1.1.10
install: npm-packlist@1.1.10 npm info lifecycle number-is-nan@1.0.1
install: number-is-nan@1.0.1 npm info lifecycle is-fullwidth-code-point@1.0.0
install: is-fullwidth-code-point@1.0.0 npm info lifecycle object-assign@4.1.1
install: object-assign@4.1.1 npm info lifecycle os-homedir@1.0.2
install: os-homedir@1.0.2 npm info lifecycle os-tmpdir@1.0.2
install: os-tmpdir@1.0.2 npm info lifecycle osenv@0.1.5
install: osenv@0.1.5 npm info lifecycle nopt@4.0.1
install: nopt@4.0.1 npm info lifecycle path-is-absolute@1.0.1
install: path-is-absolute@1.0.1 npm info lifecycle process-nextick-args@2.0.0
install: process-nextick-args@2.0.0 npm info lifecycle minimist@1.2.0
install: minimist@1.2.0 npm info lifecycle safe-buffer@5.1.1
install: safe-buffer@5.1.1 npm info lifecycle sax@1.2.4
install: sax@1.2.4 npm info lifecycle needle@2.2.0
install: needle@2.2.0 npm info lifecycle semver@5.5.0
install: semver@5.5.0 npm info lifecycle set-blocking@2.0.0
install: set-blocking@2.0.0 npm info lifecycle signal-exit@3.0.2
install: signal-exit@3.0.2 npm info lifecycle string_decoder@1.0.3
install: string_decoder@1.0.3 npm info lifecycle strip-ansi@3.0.1
install: strip-ansi@3.0.1 npm info lifecycle string-width@1.0.2
install: string-width@1.0.2 npm info lifecycle strip-json-comments@2.0.1
install: strip-json-comments@2.0.1 npm info lifecycle rc@1.2.6
install: rc@1.2.6 npm info lifecycle util-deprecate@1.0.2
install: util-deprecate@1.0.2 npm info lifecycle readable-stream@2.3.5
install: readable-stream@2.3.5 npm info lifecycle are-we-there-yet@1.1.4
install: are-we-there-yet@1.1.4 npm info lifecycle wide-align@1.1.2
install: wide-align@1.1.2 npm info lifecycle gauge@2.7.4
install: gauge@2.7.4 npm info lifecycle npmlog@4.1.2
install: npmlog@4.1.2 npm info lifecycle wrappy@1.0.2
install: wrappy@1.0.2 npm info lifecycle once@1.4.0
install: once@1.4.0 npm info lifecycle inflight@1.0.6
install: inflight@1.0.6 npm info lifecycle glob@7.1.2
install: glob@7.1.2 npm info lifecycle rimraf@2.6.2
install: rimraf@2.6.2 npm info lifecycle yallist@3.0.2
install: yallist@3.0.2 npm info lifecycle minipass@2.2.1
install: minipass@2.2.1 npm info lifecycle fs-minipass@1.2.5
install: fs-minipass@1.2.5 npm info lifecycle minizlib@1.1.0
install: minizlib@1.1.0 npm info lifecycle tar@4.4.0
install: tar@4.4.0 npm info lifecycle nan@2.9.2
install: nan@2.9.2 npm info lifecycle node-pre-gyp@0.9.0
install: node-pre-gyp@0.9.0 npm info lifecycle sqlite3@4.0.0
install: sqlite3@4.0.0 > sqlite3@4.0.0 install C:UsersDanDocumentstest-projectnode_modulessqlite3 > node-pre-gyp install —fallback-to-build node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.9.0 node-pre-gyp info using node@8.11.1 | win32 | x64 node-pre-gyp info check checked for «C:UsersDanDocumentstest-projectnode_modulessqlite3libbindingnode-v57-win32-x64node_sqlite3.node» (not found) node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.0/node-v57-win32-x64.tar.gz node-pre-gyp ERR! Completion callback never invoked! node-pre-gyp ERR! System Windows_NT 10.0.16299 node-pre-gyp ERR! command «C:\Program Files\nodejs\node.exe» «C:\Users\Dan\Documents\test-project\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp» «install» «—fallback-to-build» node-pre-gyp ERR! cwd C:UsersDanDocumentstest-projectnode_modulessqlite3 node-pre-gyp ERR! node -v v8.11.1 node-pre-gyp ERR! node-pre-gyp -v v0.9.0 node-pre-gyp ERR! This is a bug in `node-pre-gyp`. node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help: node-pre-gyp ERR! npm info lifecycle sqlite3@4.0.0
install: Failed to exec install script npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted <«os»:»darwin»,»arch»:»any»>(current: <«os»:»win32″,»arch»:»x64″>) npm ERR! code ELIFECYCLE npm ERR! errno 6 npm ERR! sqlite3@4.0.0 install: `node-pre-gyp install —fallback-to-build` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the sqlite3@4.0.0 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! C:UsersDanAppDataRoamingnpm-cache_logs2018-03-30T22_14_26_707Z-debug.log»>
The text was updated successfully, but these errors were encountered:
Источник
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Comments
This is the full error message I am getting when trying to install sqlite3.
$ npm i sqlite3
sqlite3@5.0.1 install D:Lambdaprojectsgregchaqar-datanode_modulessqlite3
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/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@5.0.1 and node@14.15.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS — not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the «Desktop development with C++» workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47)
gyp ERR! stack at C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14)
gyp ERR! stack at C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14
gyp ERR! stack at C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16
gyp ERR! stack at C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
gyp ERR! stack at C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command «C:Program Filesnodejsnode.exe» «C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «configure» «—fallback-to-build» «—module=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node» «—module_name=node_sqlite3» «—module_path=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64» «—napi_version=7» «—node_abi_napi=napi» «—napi_build_version=6» «—node_napi_label=napi-v6»
gyp ERR! cwd D:Lambdaprojectsgregchaqar-datanode_modulessqlite3
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘C:Program Filesnodejsnode.exe C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure —fallback-to-build —module=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node —module_name=node_sqlite3 —module_path=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-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. (D:Lambdaprojectsgregchaqar-datanode_modulesnode-pre-gyplibutilcompile.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 (internanode-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (interdanal/child_process.js:288:5) gy
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command «C:Program Filesnodejsnode.exe» «D:Lamblidaprojectsgregchaqar-datanode_modulesnode-pre-gypbinnode-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd D:Lambdaprojectsgregchaqar-datanode_modulessqlite3
node-pre-gyp ERR! node -v v14.15.1 a
node-pre-gyp ERR! node-pre-gyp -v v0.11.0 ur
node-pre-gyp ERR! not ok od
Failed to execute ‘C:Program Filesnodejsnode.exe C:UsersOwnerAppDate=aRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js confesigure —fallback-to-build —module=D:Lambdaprojectsgregchaqar-datanoapde_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node —module_name=node_sqlite3 —module_path=D:Lambdaprojectsgregchaqar-datanolede_modulessqlite3libbindingnapi-v6-win32-x64 —napi_version=7 —node_abi_napi=napi —napi_build_version=6 —node_napi_label=napi-v6’ (1) ev
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_moduarlesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@5.0.1 install:
node-pre-gyp install —fallback-to-build` na
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@5.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additio_0nal logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersOwnerAppDataRoamingnpm-cache_logs2021-01-11T18_05_27_207Z-debug.log
So far, rolling back to 5.0.0 Worked for me
juniorbotelho, h4kim-dyze, and arpitsatyal reacted with thumbs down emoji
johndkane, SaidTorres3, Bruce17, Morb0, mikalai-ramashka, asio1337, arvinxx, JamshedLatipov, adri-blanco, and Abhisheknarsing reacted with hooray emoji
#1421 is the same issue as this, I believe.
So far, rolling back to 5.0.0 Worked for me
What command did you do to install the older version?
We are observing errors when installing sqlite3@5.0.1
on Windows in AppVeyor. Previous versions worked fine.
Cross-posting from loopbackio/loopback-next#7009 (comment):
lerna ERR! npm ci exited 1 in '@loopback/typeorm'
lerna ERR! npm ci stdout:
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> C:projectsloopback-nextextensionstypeormnode_modulessqlite3buildRelease\nothing.lib
unpack_sqlite_dep
sqlite3.c
win_delay_load_hook.cc
sqlite3.vcxproj -> C:projectsloopback-nextextensionstypeormnode_modulessqlite3buildRelease\sqlite3.lib
backup.cc
database.cc
..srcdatabase.cc(35): error C2248: 'Napi::Env::DefaultFini': cannot access private member declared in class 'Napi::Env' [C:projectsloopback-nextextensionstypeormnode_modulessqlite3buildnode_sqlite3.vcxproj]
c:projectsloopback-nextextensionstypeormnode_modulesnode-addon-apinapi-inl.h(475): note: see declaration of 'Napi::Env::DefaultFini'
C:projectsloopback-nextextensionstypeormnode_modulesnode-addon-apinapi.h(168): note: see declaration of 'Napi::Env'
node_sqlite3.cc
statement.cc
win_delay_load_hook.cc
Failed to execute 'C:Program Files (x86)nodejsnode.exe C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=C:projectsloopback-nextextensionstypeormnode_modulessqlite3libbindingnapi-v6-win32-ia32node_sqlite3.node --module_name=node_sqlite3 --module_path=C:projectsloopback-nextextensionstypeormnode_modulessqlite3libbindingnapi-v6-win32-ia32 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
So far, rolling back to 5.0.0 Worked for me
What command did you do to install the older version?
@iHildy I manually changed my package.json from "sqlite3": "5.0.1",
to "sqlite3": "5.0.0",
and ran npm install
So far, rolling back to 5.0.0 Worked for me
What command did you do to install the older version?
@iHildy I manually changed my package.json from
"sqlite3": "5.0.1",
to"sqlite3": "5.0.0",
and rannpm install
Yea I did npm install sqlite3@5.0.0
D19cannon, pablogeokar, mekanics, johndkane, ahtraddis, zetaraku, KevenCavalcante, mikedfunk, asio1337, and juansegnana reacted with hooray emoji
KubilayTekin27, mdziubin, Pedro-Nishimura, KevenCavalcante, Leo-Ize, asio1337, and dornescum reacted with heart emoji
Had te same problem. v5.0.0 worked for me.
Ditto. Rolling it back to 5.0.0 worked for me too. Of course, this isn’t a problem with sqlite3, but it seems like a lot of us have encountered the problem while installing sqlite3.
This was referenced
Jan 15, 2021
@kewde This is a pretty big issue, preventing installing SQLite on numerous machines.. See #1413 as well (seems to be a duplicate)
Same issue , But rolling it back to 5.0.0 worked fine.
rolling back to 5.0.0 worked perfectly
For ubuntu 20.04.
it helped me to solve the problem
sudo apt install python
sudo apt install node-gyp
sudo apt upgrade node-gyp
npm install —build-from-source —python=/usr/bin/python2
I found this: #1420 . Work for me but… the install process was very slow (50 minutes more or less)
This version works, try!
npm i sqlite3@5.0.0
Basically the problem is that there are no prebuilt binaries for many platforms and if you don’t have built tool installed on your machine you must use older version.
Did someone forgot to run npx node-pre-gyp publish
or maybe there is process that must do that automatically and has failed to do that?
The buildbots should have published the binaries with 833f5cc, but that failed due to a recent change. This should hopefully be fixed once #1426 is merged and someone has retriggered the buildbots.
So far, rolling back to 5.0.0 Worked for me
What command did you do to install the older version?
@iHildy I manually changed my package.json from
"sqlite3": "5.0.1",
to"sqlite3": "5.0.0",
and rannpm install
this solution works for me. Thanks 👍
So far, rolling back to 5.0.0 Worked for me
how did you install 5.0.0
arvinxx
added a commit
to arvinxx/umi-electron-template
that referenced
this issue
Feb 3, 2021
zemlanin
added a commit
to zemlanin/scroll
that referenced
this issue
Feb 8, 2021
Rolling back to sqlite3@5.0.0
on Windows also worked for me.
I had the same issue.
Rolling back to sqlite3@5.0.0 worked fine for me, thank god
I don’t have direct access to the AWS S3 bucket so I can not manually edit the files. I have however attempted to rebuild the v5.0.1 which should add the missing N-API v6 binaries for the v5.0.1 release.
Release v5.0.2 has binaries 🥳
hi, do
npm uninstall node-pre-gyp --save
npm install @mapbox/node-pre-gyp --save
npm install sqlite3
the above solved my issue.
downgrade to 5.0.0 is not working for me, I have to downgrade to 4.1.1
downgrade is not working for me
All versions 5.0.0, 5.0.1 and 5.0.2 are working. The only problem with 5.0.1 is that it does not have binaries but they can be build during install phase if you have built tools installed.
If you have problem with 5.x version then the problem most probably is in your side.
This is a network issue and related to proxy setting. Please check proxy setting. I realized my Proxy setting was not working after checking that extensions in VScode was not loading. Now everything is working smoothly!
Strangely the issue was also failing after step > node-pre-gyp install —fallback-to-build.
After running commands , installing the packages separately, none of them worked.
Later realized this issue happen because the proxy is not set correctly. I removed the environment variable http_proxy and https_proxy. after that the npm install had no issue running command node-pre-gyp install —fallback-to-build and downloading dependency.
For ubuntu 20.04.
it helped me to solve the problemsudo apt install python
sudo apt install node-gyp
sudo apt upgrade node-gyp
npm install —build-from-source —python=/usr/bin/python2
As at Jul 2021 this solved the problem for me
If trying to build 5.0.1 from source on Windows, you will need to use Visual Studio 2017 or higher. I got the same error as @bajtos above when using Visual Studio 2015.
Ensure that you have VS2017 or 2019 C++ build tools available — use Add Or Remove Programs, and click Modify, to see which Visual Studio components you have installed. To force Node to build with the later tools, run:
npm config set msvs_version 2017
or
npm config set msvs_version 2019
as appropriate.
Esta é a mensagem de erro completa que estou recebendo ao tentar instalar o sqlite3.
$ npm e sqlite3
sqlite3@5.0.1 install D:Lambdaprojectsgregchaqar-datanode_modulessqlite3
node-pre-gyp install —fallback-to-buildnode-pre-gyp WARN Usando solicitação para node-pre-gyp https download node-pre-gyp WARN Tentativa de download (403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1 /napi-v6-win32-x64.tar.gz node-pre-gyp WARN Binários pré-criados não encontrados para sqlite3@5.0.1 e node@14.15.1 (node-v83 ABI, desconhecido) (recorrendo à compilação de origem com node-gyp) gyp ERR! encontrar VS gyp ERR! encontre VS msvs_version não definido na linha de comando ou npm config gyp ERR! encontre o VS VCINSTALLDIR não definido, não sendo executado no VS Command Prompt gyp ERR! find VS não pôde usar o PowerShell para encontrar o Visual Studio 2017 ou gyp ERR mais recente! encontre o VS procurando pelo Visual Studio 2015 gyp ERR! encontrar VS — não encontrado gyp ERR! encontre o VS não procurando pelo VS2013, pois ele só é suportado até Node.js 8 gyp ERR! encontrar VS gyp ERR! encontrar VS ************************************************** ************** gyp ERR! find VS Você precisa instalar a versão mais recente do Visual Studio gyp ERR! encontre o VS incluindo a carga de trabalho «Desktop development with C++». gyp ERR! find VS Para mais informações consulte a documentação em: gyp ERR! encontre VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! encontrar VS ************************************************** ************** gyp ERR! encontrar VS gyp ERR! configurar erro gyp ERR! Erro de pilha: não foi possível encontrar nenhuma instalação do Visual Studio para usar gyp ERR! pilha em VisualStudioFinder.fail (C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:121:47) gyp ERR! pilha em C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:74:16 gyp ERR! pilha em VisualStudioFinder.findVisualStudio2013 (C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:351:14) gyp ERR! pilha em C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:70:14 gyp ERR! pilha em C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:372:16 gyp ERR! pilha em C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7 gyp ERR! pilha em C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16 gyp ERR! pilha em ChildProcess.exithandler (child_process.js:315:5) gyp ERR! pilha em ChildProcess.emit (events.js:315:20) gyp ERR! pilha em mayClose (internal/child_process.js:1048:16) gyp ERR! Sistema Windows_NT 10.0.17134 gyp ERR! command «C:Program Filesnodejsnode.exe» «C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js» «configure» » —fallback-to-build» «—module=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node» «—module_name =node_sqlite3» «—module_path=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64» «—napi_version=7» «—node_abi_napi=napi » «—napi_build_version=6» «—node_napi_label=napi-v6» gyp ERR! cwd D:Lambdaprojectsgregchaqar-datanode_modulessqlite3 gyp ERR! nó -v v14.15.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! não ok nó-pre-gyp ERR! nó-pré-gyp ERR! Erro de pilha: Falha ao executar ‘C:Program Filesnodejsnode.exe C:UsersOwnerAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure — -fallback-to-build —module=D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node —module_name=node_sqlite3 —module_path =D:Lambdaprojectsgregchaqar-datanode_modulessqlite3libbindingnapi-v6-win32-x64 —napi_version=7 —node_abi_napi=napi —napi_build_version=6 —node_napi_label=napi- v6’ (1) nó-pre-gyp ERR! pilha em ChildProcess. (D:Lambdaprojectsgregchaqar-datanode_modulesnode-pre-gyplibutilcompile.js:83:29) node-pre-gyp ERR! pilha em ChildProcess.emit (events.js:315:20) nó-pré-gyp ERR! empilhar em mayClose (internal/child_process.js:1048:16) node-pre-gyp ERR! pilha em Process.ChildProcess._handle.onexit (internanode-pre-gyp ERR! pilha em mayClose (internal/child_process.js:1048:16) node-pre-gyp ERR! pilha em Process.ChildProcess._handle.onexit (interdanal/ child_process.js:288:5) gy node-pre-gyp ERR! Sistema Windows_NT 10.0.17134 node-pre-gyp ERR! comando «C:Program Filesnodejsnode.exe» «D:Lamblidaprojects gregchaqar-datanode_modulesnode-pre-gypbinnode-pre-gyp» «instalar» «—fallback-to-build» node-pre-gyp ERR! cwd D:Lambdaprojectsgreg chaqar-datanode_modulessqlite3 node-pre-gyp ERR! node -v v14.15. nó-pré-gyp ERR! node-pre-gyp -v v0.11.0 ur node-pre-gyp ERR! not ok od Falha ao executar ‘C:Program Filesnodejsnode.exe C:UsersOwnerAppDate=aRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js confisigure —fallback-to-build —module=D:Lambdaprojectsgregchaqar-datanoapde_modulessqlite3libbindingnapi-v6-win32-x64node_sqlite3.node —module_name=node_sqlite3 — -module_path=D:Lambdaprojectsgregchaqar-datanolede_modulessqlite3libbindingnapi-v6-win32-x64 —napi_version=7 —node_abi_napi=napi —napi_build_version=6 —node_napi_label= napi-v6’ (1) ev npm WARN opcional PULAR DEPENDÊNCIA OPCIONAL: fsevents@2.3.1 (node_moduarlesfsevents): npm WARN notsup PULAR DEPENDÊNCIA OPCIONAL: plataforma não suportada para fsevents@2.3.1: queria {«os»:»darwin»,»arch»:»any»} (atual: {«os»:»win32″,»arch»: «x64»})
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@5.0.1 install:
node-pre-gyp install —fallback-to-build` na npm ERR! Status de saída 1 npm ERR! npm ERR! Falha no script de instalação sqlite3@5.0.1. npm ERR! Isso provavelmente não é um problema com o npm. Provavelmente há saída de registro adicional acima.npm ERR! Um log completo desta execução pode ser encontrado em: npm ERR! C:UsersProprietárioAppDataRoamingnpm-cache_logs2021-01-11T18_05_27_207Z-debug.log
mano no meu para poder resolver o erro foi só instalar o pyton que eu ainda não tinha na maquina, tente isso, acredito que vai da certo., caso contrario, remova o node_modules e package.son e depois npm i acredito que vai resolver, porém tente a primeira opção.
sudo apt install python
sudo apt install node-gyp
sudo apt upgrade node-gyp
npm install —build-from-source —python=/usr/bin/python2
Solved my issue for Ubuntu 22.04 and version 5.0.2
Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Whenever I run npm install --save sqlite3@^4.0.9
in my integrated terminal in Visual Studio Code, NPM throws these errors:
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 > sqlite3@4.0.9 install C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3 > 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/sqlite3/v4.0.9/node-v83-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.9 and node@14.15.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. C:Program Files (x86)Microsoft Visual Studio2017BuildToolsCommon7IDEVCVCTa rgetsMicrosoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v14 0 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools , please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:UsersbabyoscarDocumentssql-orms-with-noden ode_modulessqlite3builddepsaction_before_build.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0BinMSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:194: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 Windows_NT 10.0.19041 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\babyoscar\Documents\sql-orms-with-node\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\babyoscar\Documents\sql-orms-with-node\node_modules\sqlite3\lib\binding\node-v83-win32-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3 gyp ERR! node -v v14.15.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3libbindingnode-v83-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3libbindingnode-v83-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulesnode-pre-gyplibutilcompile.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 Windows_NT 10.0.19041 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\babyoscar\Documents\sql-orms-with-node\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3 node-pre-gyp ERR! node -v v14.15.1 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3libbindingnode-v83-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersbabyoscarDocumentssql-orms-with-nodenode_modulessqlite3libbindingnode-v83-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN sql-orms-with-node@1.0.0 No description npm WARN sql-orms-with-node@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.0.9 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.0.9 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! C:UsersbabyoscarAppDataRoamingnpm-cache_logs2021-01-21T16_07_09_858Z-debug.log
and then it doesn’t work if I run npm start
, since I didn’t install SQLite3 successfully. Can someone help? Thanks.
2 Answers
atoniolo January 22, 2021 3:20am
babyoscar i also encountered this, it seems that it is a problem with the new version of sqlite3, maybe its corrupted or specific libraries are deprecated because all other versions work. try running npm install --save sqlite3@^5.0.0
its a more recent one that is not that old
Brian Wright June 14, 2021 11:12am
I installed both sequelize and sqlite without any issues. I installed them through the dependencies in package.json with npm install rather than separately at the command line with no issues. After deleting the node modules and dependencies I tried to install them both at the command line and also got the same error.
#node.js #linux #sqlite #npm
#node.js #linux #sqlite #npm
Вопрос:
Я запускаю Pop! _OS (Ubuntu) 20.04. Когда я пытаюсь добавить sqlite3 в свои зависимости в моем проекте nodejs, я получаю эту стену предупреждений:
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
> sqlite3@5.0.1 install /home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3
> 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/sqlite3/v5.0.1/napi-v6-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@5.0.1 and node@14.15.4 (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/build'
CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c
/bin/sh: 1: python: not found
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c] Error 127
make: Leaving directory '/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194: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.8.0-7630-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/kevinlopez/Documents/Projects/wsky-be/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"
gyp ERR! cwd /home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/kevinlopez/Documents/Projects/wsky-be/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)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/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.8.0-7630-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3
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 '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/kevinlopez/Documents/Projects/wsky-be/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/kevinlopez/Documents/Projects/wsky-be/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)
npm WARN wsky-be@1.0.0 No description
npm WARN wsky-be@1.0.0 No repository field.
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! sqlite3@5.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@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! /home/kevinlopez/.npm/_logs/2021-01-17T06_26_58_042Z-debug.log
Я попытался удалить и переустановить npm и nodejs, удалить и переустановить node_modules и package-lock.json, удалить ~/.node-gyp и запустить npm i -g node-gyp
, а также установить build essentials с помощью sudo apt-get install -y build-essential
Это мой package.json:
{
"name": "wsky-be",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" amp;amp; exit 1",
"start": "nodemon index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bcrypt": "^5.0.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-session": "^1.17.1",
"helmet": "^4.3.1",
"knex": "^0.21.15"
},
"devDependencies": {
"nodemon": "^2.0.7"
}
}
Комментарии:
1.
/bin/sh: 1: python: not found
… вид торчит, нет?2. Это было все. Он пытается запустить команду python, которая больше не существует в Ubuntu 20.04. Я обошел это, запустив
sudo apt-get install python-is-python3
. Это лишь временное решение, поскольку, похоже, оно заменяет любую команду python командой python3. Мне нужно будет найти что-то еще, когда потребуется запустить команду python2.3. теперь node-gyp совместим как с Python 2, так и с 3, поэтому вы, вероятно, не столкнетесь с этой конкретной проблемой, по крайней мере, с Node.
Ответ №1:
Передайте путь python процессу установки npm, таким образом, python будет найден
npm install --build-from-source --python=/usr/bin/python3
Не забудьте указать желаемую версию python, не забывайте, что python3 — лучший выбор в настоящее время. Я использовал путь: /usr/bin/python3.8 и тоже работал.
нашел эту команду по адресу: проблема с github в репозитории node-sqlite3
Комментарии:
1. На самом деле это был самый логичный способ, но
python2
для меня он не сработалpython3
, и мне пришлось установить python2 перед запускомnpm install --build-from-source --python=/usr/bin/python2
. Спасибо, мой друг, что спас меня.2. Решил мою проблему, спасибо!
Ответ №2:
Я думаю, что эта проблема связана с последней версией sqlite3. Попробуйте npm install sqlite3@4.1.1
и используйте его. Для меня это работает идеально
Комментарии:
1. (текущая версия sqlite3 = 5.0.1) … Для меня «установка npm sqlite3@5.0.0 » сработало
Ответ №3:
Альтернативой символической привязке python3 к python (что python-is-python3
и делает) будет установка python
переменной в вашей конфигурации npm. Пример: npm config set python /usr/local/bin/python3
.
Комментарии:
1. Это исправило мою проблему при попытке
npm install sqlite3
сборки CircleCI. Стандартный контейнер CircleCI не имеетpython
, только/usr/bin/python3
. Соответствующий шаг:- run: npm config set python /usr/bin/python3
Ответ №4:
splite3 использует python 2.7 для сборки. Была та же проблема. Мне пришлось указать путь к python в конфигурации npm. Для меня (в Linux) решением было: npm config установить python / usr / bin /python2
Затем я смог успешно установить sqlite3.
Ответ №5:
И передача комментария в ответ:
Я предлагаю вам установить python (сделать его доступным), учитывая сообщение /bin/sh: 1: python: not found
.
Ответ №6:
выполните npm uninstall node-pre-gyp --save
npm install @mapbox/node-pre-gyp --save
npm install sqlite3
вышеизложенное решило мою проблему.
Комментарии:
1. не могу даже этого сделать, та же ошибка, когда я пытаюсь удалить node-pre-gyp
Ответ №7:
Для всех, у кого есть эта проблема. Я работаю со своим офисным ПК, где все ограничено, поэтому установка этого sqlite3 возвращает ошибку, поскольку она требует компиляции во время установки npm. Вот что я выясняю:
-
- Если мой package.json имеет только
"sqlite3": "^5.0.2"
(без какой-либо другой библиотеки), тоnpm install
работает. Но если я добавлю все другие библиотеки, необходимые для моего проекта sqlite@5.0.2 , удалите nodes_modules, запуститеnpm install
снова, затем произойдет сбой ->> решением для этого является только добавление"sqlite3": "^5.0.2"
и запускnpm install
сначала, затем вручную добавьте другие зависимости позже и запуститеnpm install
еще раз, конечно, это не предпочтительный способ, поскольку мынеобходимо вручную выполнить
- Если мой package.json имеет только
-
- понизьте рейтинг, чтобы
"sqlite3": "^4.1.1"
устранить проблему, я могу определитьsqlite3
со всеми другими библиотеками в моем пакете.json —>> Я придерживаюсь этого подхода
- понизьте рейтинг, чтобы
Ответ №8:
Я также часами пытался преодолеть ту же проблему, но решил ее в 2 простых шага:
npm rebuild
npm i sqlite
Это сработало для меня!
Комментарии:
1. @Luis Спасибо за редактирование, приятель. Действительно ценю.
Ответ №9:
добавлена версия "sqlite3": "^4.1.1"
в package.json и запущена команда
npm install --build-from-source --python=/usr/bin/python3
решил проблему для меня