Better-sqlite3: Can not install better-sqlite3

Created on 21 Jun 2019  路  8Comments  路  Source: JoshuaWise/better-sqlite3

I keep getting these errors when I try to install it

gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Ahmad Alfalasi\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Ahmad Alfalasi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Ahmad Alfalasi\DesktopCurrent bots\botnode_modules\integer
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Ahmad Alfalasi\DesktopCurrent bots\botpackage.json'
npm WARN discord.[email protected] requires a peer of bufferutil@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.[email protected] requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN bot No description
npm WARN bot No repository field.
npm WARN bot No README data
npm WARN bot No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
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\Ahmad Alfalasi\AppData\Roaming\npm-cache_logs\2019-06-21T12_06_10_612Z-debug.log

help wanted

All 8 comments

please search through the other issues.. your question has most likely been answered.

but to quickly sum it up.

you need to install windows build tools. then python if it doesn't install maybe add the path to the environment. then run npm. then do the rebuild. if you want more info just search!

Done that method already, doesn't work at all

Hi, do you install node.js with nvm or not?

SyntaxError: invalid syntax

It looks like a mismatched version of Python or JavaScript

Let me know it this fixes it, run before install: npm i -g node-gyp@latest

Closing due to inactivity

npm i -g node-gyp@latest

I have same issue, this doesn't help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Silve2611 picture Silve2611  路  6Comments

jonataswalker picture jonataswalker  路  5Comments

Babalon921 picture Babalon921  路  3Comments

Alon-L picture Alon-L  路  5Comments

instagendleg picture instagendleg  路  4Comments