Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node-pre-gyp err while trying to npm install

While trying to install sqlite I'm getting an error running with:

  • npm v6.4.1
  • node v8.11.4
  • Windows 10

I tried to clean cache, reinstall nodejs/npm and some random things I found in other questions here(like setting msvs version, setting python config var etc.)

Error log:

kawthar@Romana MINGW64 ~/Desktop/Nodev/Artesã (JS)
$ npm install sqlite --save    

> [email protected] install C:\Users\kawthar\Desktop\Nodev\Artesã (JS)\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build

'node-pre-gyp' is not recognized as an internal or external command,
operable program or batch file.

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:\Users\kawthar\AppData\Roaming\npm-cache\_logs\2018-08-30T22_28_34_617Z-debug.log
like image 599
Kawthar A. Avatar asked Sep 05 '25 03:09

Kawthar A.


1 Answers

Use the following command and try again:

npm install -g node-gyp
like image 65
progm Avatar answered Sep 07 '25 19:09

progm