$ npm install --save better-sqlite3
...
if [ "$CI" = "true" ]; then node-gyp rebuild --debug; else node-gyp rebuild; fi;
"$CI" was unexpected at this time.
....
Environment:
node: v6.4.0
npm: v3.10.6
os: Windows 10
Strange, sounds like a problem with Windows Bash.
Try this:
export CI="false"
npm install --save better-sqlite3
Wasn't using Windows Bash but the command prompt...
Running your suggestions via Windows Bash yielded the same error. Alas...
I just released a series of patches that should address windows build issues. You'll need to install at least version 1.3.5.
npm install --save [email protected]
At least 1.3.5? Couldn't find any higher release ... :-)
npm install --save better-sqlite3 does not fail on your side anymore, but on its dependency node-gyp. Guess this issue can be closed.
Thank you for your effort and swift response!
Hoped to bypass the requirement of installing Python < 3 plus a ton of Visual Studio software for C++ on my pc just to be able to use sqlite from Electron. Using sql.js instead which is native javascript.
Okay, sounds good.
For me it still fails...
674 verbose cwd C:\b\hello-electron-with-pouchdb
675 error Windows_NT 6.1.7601
676 error argv "C:\Program Files\nodejs\node.exe" "C:\Users\Stevie\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "better-sqlite3"
677 error node v4.6.0
678 error npm v3.10.8
679 error code ELIFECYCLE
680 error [email protected] install: node install
680 error Exit status 1
681 error Failed at the [email protected] install script 'node install'.
681 error Make sure you have the latest version of node.js and npm installed.
681 error If you do, this is most likely a problem with the better-sqlite3 package,
681 error not with npm itself.
681 error Tell the author that this fails on your system:
681 error node install
681 error You can get information on how to open an issue for this project with:
681 error npm bugs better-sqlite3
681 error Or if that isn't available, you can get their info via:
681 error npm owner ls better-sqlite3
681 error There is likely additional logging output above.
682 verbose exit [ 1, true ]
Do I miss some version-requirements?
I run npm install --save [email protected] and got this error:
D:\dev\tools\N1-master\N1-master\node_modules>npm install --save [email protected]
> [email protected] install D:\dev\tools\N1-master\N1-master\node_modules\better-sqlite3
> node install
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn node-gyp ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:139:18)
at node.js:974:3
npm WARN [email protected] No license field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "D:\\Users\\myuser\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "[email protected]"
npm ERR! node v4.6.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install'.
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 better-sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs better-sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls better-sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\dev\tools\N1-master\N1-master\node_modules\npm-debug.log
Ah, _now_ you're experiencing https://github.com/JoshuaWise/better-sqlite3/issues/8
I can't remember what I did to get it working on my windows computer. But I believe it had something to do with Python. I'll see if I can figure it out again, and I'll post back inside issue https://github.com/JoshuaWise/better-sqlite3/issues/8