Closed sveinnM closed 9 years ago
Hi, I don't have a windows machine so I can't help specifically. The error appears to be because the sqlite3 module is not found. You can verify this by trying to run a file with only the line var sqlite3 = require('sqlite3');
If you run that and get the same error then the easiest way to attack it is to start in a new clean directory. There are compatibility issues between various versions of node and sqlite3. Node changes. Currently my stable configuration is to run the current v0.11.x version of node. So I would install that and make sure that is the version you have running by doing node --version
Next just do npm install sqlite3
Now create your test file with just the require line and see if it works.
Terry
On 11/13/14, 10:28 AM, sveinnM wrote:
Hi, I get an error trying to use sqlite3. I'm new to nodejs (my first project), so I started out installing the latest nodejs, which made me unable to install ( "npm install sqlite3" ) sqlite3 (got lots of errors), then after hours of googling I saw that the newest version of nodejs has bugs, so i downloaded older version (0.10.29). After that installing sqlite3 worked. So I made a test to see if it worked. Made a file sqlitee.js:
|var sqlite3 = require('sqlite3').verbose(); var db = new sqlite3.Database(':memory:');
db.serialize(function() {
db.run("CREATE TABLE lorem (info TEXT)"); var stmt = db.prepare("INSERT INTO lorem VALUES (?)"); for (var i = 0; i < 10; i++) { stmt.run("Ipsum " + i); } stmt.finalize(); db.each("SELECT rowid AS id, info FROM lorem", function(err, row) { console.log(row.id + ": " + row.info); });
}); db.close(); |
When I then run "node sqlitee.js" i get:
module.js:340 throw err; ^ Error: Cannot find module 'C:\Users\Sveinn\Documents\HÍ\Haust 2014\Vefforritun\ Skilaverkefni 11\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlit e3.node' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (C:\Users\Sveinn\Documents\HÍ\Haust 2014\Vefforritun\ Skilaverkefni 11\node_modules\sqlite3\lib\sqlite3.js:4:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) I have v3.0.2 of sqlite3 installed. I really have been googling for 6 hours total now, and found nothing that works for me.
HELP ME PLEASE!
— Reply to this email directly or view it on GitHub https://github.com/mapbox/node-sqlite3/issues/364.
I notice some non-ascii characters and spaces in the directory name you are using. Can you try installing into a directory that does not use spaces and only uses ascii characters?
@talkingtab I installed the latest version of nodejs (v0.10.33) and verified it with "node -v". So then I entered "npm install sqlite3" and I got same errors I got when I first tried installing sqlite3:
npm ERR! sqlite3@3.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sqlite3@3.0.2 install script.
npm ERR! 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 their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Sveinn\Documents\HI\Haust 2014\Vefforritun\Skilaverkefni 1
1
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0
So yeah, im even further back because I can't even install sqlite3.
@springmeyer I tried it and I just got the same error message but with HI instead of HÍ (unless there are some non-ascii chars im not seeing?)
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\Sveinn\Documents\HI\Haust 2014\Vefforritun\S
kilaverkefni 11\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite
3.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\Sveinn\Documents\HI\Haust 2014\Vefforritun\S
kilaverkefni 11\node_modules\sqlite3\lib\sqlite3.js:4:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I don't know, it's like when im able to install sqlite3, it doesnt finish installing all the right directories .. because this directory .\lib\binding.... doesn't exist, that is there is no folder "binding" inside lib, just three .js files
@sveinnM looks like the problem is also the space:
C:\Users\Sveinn\Documents\HI\Haust 2014\Vefforritun\Skilaverkefni 11\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node
See the space before 11
and 2014
?
@sveinnM - to be clear: spaces and non-ascii characters should be supported, but my hunch is that they are not, so that is why I am recommending you remove them to get things running (and isolate the problem).
@springmeyer Deleted the spaces and tried installing sqlite3 with the v.0.10.33 version and got the ERR! stuff (above), then I uninstalled nodejs and installed stable version v0.10.29 - and like before, i'm somehow able to install sqlite3 with this version, but I cant run "node sqlitee.js", get the same stuff but without spaces:
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\Sveinn\Documents\HI\Haust2014\Vefforritun\Sk
ilaverkefni11\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.
node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\Sveinn\Documents\HI\Haust2014\Vefforritun\Sk
ilaverkefni11\node_modules\sqlite3\lib\sqlite3.js:4:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
sqlitee.js only contains the line:
var sqlite3 = require('sqlite3');
@sveinnM - okay, thanks for ruling out the spaces. Let's continue debugging to try to figure out the problem:
1) Can you run:
node -e "console.log(process.arch)"
The error above indicates you are running 32 bit (aka ia32) node, but lets make sure. A potential problem is that you used 64 bit node to install node-sqlite3 but you are running 32 bit node.
2) Tell me what is in this directory:
C:\Users\Sveinn\Documents\HI\Haust2014\Vefforritun\Skilaverkefni11\node_modules\sqlite3\lib\binding
. Can you share what is inside there?
@springmeyer
$ node -e "console.log(process.arch)"
ia32
About the directory, it doesnt exist. Like I said above, its like all the folders arent being made. Inside .\lib there are just three .js files: index.js, sqlite3.js and trace.js, nothing more, no folder or nothing.
The problem is come from npm which doesn't install the module correctly.
Can you run:
npm config set loglevel verbose
npm install sqlite3
About the directory, it doesnt exist. Like I said above, its like all the folders arent being made.
@sveinnM okay. This is really odd, never seen anything like it before. I'm hoping that there is some obvious error we are just missing or overlooking. Just like @daiyam recommended can you try a clean install again in verbose mode? so, do:
npm install sqlite3 --verbose --no-rollback
And then paste the entire log to https://gist.github.com/ and then link it here?
@sveinnM - did you see my request above?
@sveinnM My personal favorite is: get yourself VirtualBox and the ISO for Debian/jessie. Get that virtual machine up and running. Install nodejs and off you go. You will still be having problems, but guess what, you will be developing on a machine that is actually meant for running that beast and you will be learning so much more while doing it.
@springmeyer I'm experiencing the same issues on node v0.12
and iojs v1.10
. However, everything works on node v0.10.36
log from iojs v1.1.0
npm install --save sqlite3
npm WARN package.json bookshelf-demo@0.0.1 No repository field.
npm WARN package.json bookshelf-demo@0.0.1 No README data
npm WARN engine sqlite3@2.2.4: wanted: {"node":">= 0.8.0 < 0.13.0"} (current: {"node":"1.1.0","npm":"2.4.1"})
npm WARN deprecated set-immediate@0.1.1: Use `setimmediate` instead
|
> sqlite3@2.2.4 install /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3080500/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3080500/sqlite3.o
Release/obj/gen/sqlite-autoconf-3080500/sqlite3.c:8542:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 1;
^
1 warning generated.
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:616:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
v8::String::ExternalAsciiStringResource *resource) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2016:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:615:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::String> NanNew(
^
../node_modules/nan/nan.h:610:36: note: previous definition is here
NAN_INLINE v8::Local<v8::String> NanNew(
^
../node_modules/nan/nan.h:1973:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
if (str->IsExternalAscii()) {
^~~~~~~~~~~~~~~
IsExternal
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:1980:8: note: 'IsExternal' declared here
bool IsExternal() const;
^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:1974:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
const v8::String::ExternalAsciiStringResource* ext;
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2016:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:1975:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
ext = str->GetExternalAsciiStringResource();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GetExternalOneByteStringResource
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2083:40: note: 'GetExternalOneByteStringResource' declared here
const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../node_modules/nan/nan.h:1975:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
ext = str->GetExternalAsciiStringResource();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1976:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
*data = ext->data();
^ ~~~~~~~~~~~
../src/database.cc:134:18: error: no matching member function for call to 'Set'
args.This()->Set(NanNew("filename"), args[0]->ToString(), ReadOnly);
~~~~~~~~~~~~~^~~
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2411:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(Handle<Value> key, Handle<Value> value);
^
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2413:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(uint32_t index, Handle<Value> value);
^
../src/database.cc:135:18: error: no matching member function for call to 'Set'
args.This()->Set(NanNew("mode"), NanNew<Integer>(mode), ReadOnly);
~~~~~~~~~~~~~^~~
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2411:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(Handle<Value> key, Handle<Value> value);
^
/Users/robert/.node-gyp/1.1.0/deps/v8/include/v8.h:2413:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(uint32_t index, Handle<Value> value);
^
9 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:100:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1040:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs" "/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.4" "--major=2" "--minor=2" "--patch=4" "--runtime=node" "--node_abi=node-v43" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://node-sqlite3.s3.amazonaws.com/" "--module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64" "--remote_path=./Release/" "--package_name=node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz" "--staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz" "--hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/" "--hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz"
gyp ERR! cwd /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
gyp ERR! node -v v1.1.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.4 --major=2 --minor=2 --patch=4 --runtime=node --node_abi=node-v43 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:100:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:981:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053:5)
node-pre-gyp ERR! System Darwin 14.0.0
node-pre-gyp ERR! command "node" "/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
node-pre-gyp ERR! node -v v1.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.4 --major=2 --minor=2 --patch=4 --runtime=node --node_abi=node-v43 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://node-sqlite3.s3.amazonaws.com/ --module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64 --remote_path=./Release/ --package_name=node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz --staged_tarball=build/stage/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz --hosted_path=https://node-sqlite3.s3.amazonaws.com/Release/ --hosted_tarball=https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v43-darwin-x64.tar.gz' (1)
npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs" "/Users/robert/.nvm/versions/io.js/v1.1.0/bin/npm" "install" "--save" "sqlite3"
npm ERR! node v1.1.0
npm ERR! npm v2.4.1
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@2.2.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@2.2.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! 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 their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
node v0.12 log
npm install --save sqlite3
npm WARN package.json bookshelf-demo@0.0.1 No repository field.
npm WARN package.json bookshelf-demo@0.0.1 No README data
/
> sqlite3@3.0.4 install /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
child_process: customFds option is deprecated, use stdio instead.
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3080701/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3080701/sqlite3.o
Release/obj/gen/sqlite-autoconf-3080701/sqlite3.c:8645:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 1;
^
1 warning generated.
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
../src/database.cc:134:18: error: no matching member function for call to 'Set'
args.This()->Set(NanNew("filename"), args[0]->ToString(), ReadOnly);
~~~~~~~~~~~~~^~~
/Users/robert/.node-gyp/0.12.0/deps/v8/include/v8.h:2112:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(Handle<Value> key, Handle<Value> value);
^
/Users/robert/.node-gyp/0.12.0/deps/v8/include/v8.h:2114:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(uint32_t index, Handle<Value> value);
^
../src/database.cc:135:18: error: no matching member function for call to 'Set'
args.This()->Set(NanNew("mode"), NanNew<Integer>(mode), ReadOnly);
~~~~~~~~~~~~~^~~
/Users/robert/.node-gyp/0.12.0/deps/v8/include/v8.h:2112:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(Handle<Value> key, Handle<Value> value);
^
/Users/robert/.node-gyp/0.12.0/deps/v8/include/v8.h:2114:8: note: candidate function not viable: requires 2 arguments, but 3 were provided
bool Set(uint32_t index, Handle<Value> value);
^
../src/database.cc:145:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc:230:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc:509:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc:610:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
4 warnings and 2 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/robert/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "/Users/robert/.nvm/versions/node/v0.12.0/bin/node" "/Users/robert/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=node" "--node_abi=node-v14" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64" "--module=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/" "--package_name=node-v14-darwin-x64.tar.gz" "--staged_tarball=build/stage/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz" "--hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz"
gyp ERR! cwd /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/robert/.nvm/versions/node/v0.12.0/bin/node /Users/robert/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=3.0.4 --major=3 --patch=4 --runtime=node --node_abi=node-v14 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64 --module=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-v14-darwin-x64.tar.gz --staged_tarball=build/stage/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
node-pre-gyp ERR! System Darwin 14.0.0
node-pre-gyp ERR! command "node" "/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
node-pre-gyp ERR! node -v v0.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.1
node-pre-gyp ERR! not ok
Failed to execute '/Users/robert/.nvm/versions/node/v0.12.0/bin/node /Users/robert/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=3.0.4 --major=3 --patch=4 --runtime=node --node_abi=node-v14 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64 --module=/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-v14-darwin-x64.tar.gz --staged_tarball=build/stage/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz' (1)
npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/robert/.nvm/versions/node/v0.12.0/bin/node" "/Users/robert/.nvm/versions/node/v0.12.0/bin/npm" "install" "--save" "sqlite3"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@3.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.0.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! 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 their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
Here is the output from npm install sqlite3 --verbose --no-rollback
using iojs
npm install sqlite3 --verbose --no-rollback
npm info it worked if it ends with ok
npm verb cli [ '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs',
npm verb cli '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/npm',
npm verb cli 'install',
npm verb cli 'sqlite3',
npm verb cli '--verbose',
npm verb cli '--no-rollback' ]
npm info using npm@2.4.1
npm info using node@v1.1.0
npm WARN package.json bookshelf-demo@0.0.1 No repository field.
npm WARN package.json bookshelf-demo@0.0.1 No README data
npm verb cache add spec sqlite3@^3.0.4
npm verb addNamed sqlite3@>=3.0.4 <4.0.0
npm verb addNameRange registry:https://registry.npmjs.org/sqlite3 not in flight; fetching
npm verb request uri https://registry.npmjs.org/sqlite3
npm verb request no auth needed
npm info attempt registry request try #1 at 20:02:08
npm verb request id b3f93619e0006e4f
npm verb etag "B3G16GXR787S0DYK056S3RTVH"
npm http request GET https://registry.npmjs.org/sqlite3
npm http 304 https://registry.npmjs.org/sqlite3
npm verb etag https://registry.npmjs.org/sqlite3 from cache
npm verb get saving sqlite3 to /Users/robert/.npm/registry.npmjs.org/sqlite3/.cache.json
npm verb stack Error: No compatible version found: sqlite3@'>=3.0.4 <4.0.0'
npm verb stack Valid install targets:
npm verb stack ["2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.7","2.1.8","2.1.9","2.1.10","2.1.11","2.1.12","2.1.13","2.1.14","2.1.15","2.1.16","2.1.17","2.1.18","2.1.19","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4"]
npm verb stack
npm verb stack at installTargetsError (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/lib/cache/add-named.js:259:12)
npm verb stack at next (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/lib/cache/add-named.js:238:17)
npm verb stack at setData (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/lib/cache/add-named.js:215:5)
npm verb stack at RES (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)
npm verb stack at f (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/node_modules/once/once.js:17:25)
npm verb stack at saved (/Users/robert/.nvm/versions/io.js/v1.1.0/lib/node_modules/npm/lib/cache/caching-client.js:173:7)
npm verb stack at FSReqWrap.oncomplete (fs.js:72:15)
npm verb cwd /Users/robert/Code/bookshelf-demo
npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs" "/Users/robert/.nvm/versions/io.js/v1.1.0/bin/npm" "install" "sqlite3" "--verbose" "--no-rollback"
npm ERR! node v1.1.0
npm ERR! npm v2.4.1
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: sqlite3@'>=3.0.4 <4.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.7","2.1.8","2.1.9","2.1.10","2.1.11","2.1.12","2.1.13","2.1.14","2.1.15","2.1.16","2.1.17","2.1.18","2.1.19","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm verb exit [ 1, true ]
@robertd you need sqlite3@3.0.5 which was just published. Can you try again?
Much better :+1:
Thanks!
npm install sqlite3 --verbose --no-rollback
npm info it worked if it ends with ok
npm verb cli [ '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs',
npm verb cli '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/npm',
npm verb cli 'install',
npm verb cli 'sqlite3',
npm verb cli '--verbose',
npm verb cli '--no-rollback' ]
npm info using npm@2.4.1
npm info using node@v1.1.0
npm WARN package.json bookshelf-demo@0.0.1 No repository field.
npm WARN package.json bookshelf-demo@0.0.1 No README data
npm verb cache add spec sqlite3@^3.0.4
npm verb addNamed sqlite3@>=3.0.4 <4.0.0
npm verb addNameRange registry:https://registry.npmjs.org/sqlite3 not in flight; fetching
npm verb request uri https://registry.npmjs.org/sqlite3
npm verb request no auth needed
npm info attempt registry request try #1 at 20:05:34
npm verb request id d0d06113a29a4180
npm verb etag "B3G16GXR787S0DYK056S3RTVH"
npm http request GET https://registry.npmjs.org/sqlite3
npm http 200 https://registry.npmjs.org/sqlite3
npm verb get saving sqlite3 to /Users/robert/.npm/registry.npmjs.org/sqlite3/.cache.json
npm verb addNamed sqlite3@3.0.5
npm verb addRemoteTarball https://registry.npmjs.org/sqlite3/-/sqlite3-3.0.5.tgz not in flight; adding
npm verb addRemoteTarball [ 'https://registry.npmjs.org/sqlite3/-/sqlite3-3.0.5.tgz',
npm verb addRemoteTarball '27adf608575e847f847961bf4a90a9c60f26fd57' ]
npm info retry fetch attempt 1 at 20:05:34
npm info attempt registry request try #1 at 20:05:34
npm http fetch GET https://registry.npmjs.org/sqlite3/-/sqlite3-3.0.5.tgz
npm http fetch 200 https://registry.npmjs.org/sqlite3/-/sqlite3-3.0.5.tgz
npm verb addTmpTarball /var/folders/n1/6_1d_d816410lmww6sbcj7ww0000gn/T/npm-15200-e7594c44/registry.npmjs.org/sqlite3/-/sqlite3-3.0.5.tgz not in flight; adding
npm verb addTmpTarball already have metadata; skipping unpack for sqlite3@3.0.5
npm verb afterAdd /Users/robert/.npm/sqlite3/3.0.5/package/package.json not in flight; writing
npm verb afterAdd /Users/robert/.npm/sqlite3/3.0.5/package/package.json written
npm info install sqlite3@3.0.5 into /Users/robert/Code/bookshelf-demo
npm info installOne sqlite3@3.0.5
npm verb installOne of sqlite3 to /Users/robert/Code/bookshelf-demo not in flight; installing
npm verb lock using /Users/robert/.npm/_locks/sqlite3-4cd32ef13f01d9f8.lock for /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm verb unbuild node_modules/sqlite3
npm info preuninstall sqlite3@3.0.4
npm info uninstall sqlite3@3.0.4
npm verb unbuild rmStuff sqlite3@3.0.4 from /Users/robert/Code/bookshelf-demo/node_modules
npm info postuninstall sqlite3@3.0.4
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm verb tar unpack /Users/robert/.npm/sqlite3/3.0.5/package.tgz
npm verb tar unpacking to /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm info preinstall sqlite3@3.0.5
npm verb cache add spec nan@~1.6.2
npm verb addNamed nan@>=1.6.2 <1.7.0
npm verb addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
npm verb request uri https://registry.npmjs.org/nan
npm verb request no auth needed
npm info attempt registry request try #1 at 20:05:38
npm verb etag "14O3K2LGQVD10ZCWPT1QRZU6G"
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm verb etag https://registry.npmjs.org/nan from cache
npm verb get saving nan to /Users/robert/.npm/registry.npmjs.org/nan/.cache.json
npm verb addNamed nan@1.6.2
npm verb afterAdd /Users/robert/.npm/nan/1.6.2/package/package.json not in flight; writing
npm verb afterAdd /Users/robert/.npm/nan/1.6.2/package/package.json written
npm info install nan@1.6.2 into /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm info installOne nan@1.6.2
npm verb installOne of nan to /Users/robert/Code/bookshelf-demo/node_modules/sqlite3 not in flight; installing
npm verb lock using /Users/robert/.npm/_locks/nan-57fce682b2b55cbf.lock for /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm verb unbuild node_modules/sqlite3/node_modules/nan
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm verb tar unpack /Users/robert/.npm/nan/1.6.2/package.tgz
npm verb tar unpacking to /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm info preinstall nan@1.6.2
npm verb about to build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules' ]
npm info linkStuff nan@1.6.2
npm verb linkBins nan@1.6.2
npm verb linkMans nan@1.6.2
npm verb rebuildBundles nan@1.6.2
npm info install nan@1.6.2
npm info postinstall nan@1.6.2
npm verb unlock done using /Users/robert/.npm/_locks/nan-57fce682b2b55cbf.lock for /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/nan
npm verb about to build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules' ]
npm info linkStuff sqlite3@3.0.5
npm verb linkBins sqlite3@3.0.5
npm verb linkMans sqlite3@3.0.5
npm verb rebuildBundles sqlite3@3.0.5
npm verb rebuildBundles [ 'nan', 'node-pre-gyp' ]
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp
npm info preinstall node-pre-gyp@0.6.2
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules' ]
npm info linkStuff node-pre-gyp@0.6.2
npm verb linkBins node-pre-gyp@0.6.2
npm verb link bins [ { 'node-pre-gyp': './bin/node-pre-gyp' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans node-pre-gyp@0.6.2
npm verb rebuildBundles node-pre-gyp@0.6.2
npm verb rebuildBundles [ 'mkdirp',
npm verb rebuildBundles 'nopt',
npm verb rebuildBundles 'npmlog',
npm verb rebuildBundles 'rc',
npm verb rebuildBundles 'request',
npm verb rebuildBundles 'rimraf',
npm verb rebuildBundles 'semver',
npm verb rebuildBundles 'tar',
npm verb rebuildBundles 'tar-pack' ]
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/.bin/node-pre-gyp
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/mkdirp
npm info preinstall mkdirp@0.5.0
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff mkdirp@0.5.0
npm verb linkBins mkdirp@0.5.0
npm verb link bins [ { mkdirp: 'bin/cmd.js' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans mkdirp@0.5.0
npm verb rebuildBundles mkdirp@0.5.0
npm verb rebuildBundles [ 'minimist' ]
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/mkdirp
npm info install mkdirp@0.5.0
npm info postinstall mkdirp@0.5.0
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/nopt
npm info preinstall nopt@3.0.1
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff nopt@3.0.1
npm verb linkBins nopt@3.0.1
npm verb link bins [ { nopt: './bin/nopt.js' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans nopt@3.0.1
npm verb rebuildBundles nopt@3.0.1
npm verb rebuildBundles [ 'abbrev' ]
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/nopt
npm info install nopt@3.0.1
npm info postinstall nopt@3.0.1
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog
npm info preinstall npmlog@0.1.1
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff npmlog@0.1.1
npm verb linkBins npmlog@0.1.1
npm verb linkMans npmlog@0.1.1
npm verb rebuildBundles npmlog@0.1.1
npm verb rebuildBundles [ 'ansi' ]
npm info install npmlog@0.1.1
npm info postinstall npmlog@0.1.1
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc
npm info preinstall rc@0.5.5
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff rc@0.5.5
npm verb linkBins rc@0.5.5
npm verb link bins [ { rc: './index.js' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans rc@0.5.5
npm verb rebuildBundles rc@0.5.5
npm verb rebuildBundles [ 'deep-extend', 'ini', 'minimist', 'strip-json-comments' ]
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/rc
npm info install rc@0.5.5
npm info postinstall rc@0.5.5
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request
npm info preinstall request@2.51.0
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff request@2.51.0
npm verb linkBins request@2.51.0
npm verb linkMans request@2.51.0
npm verb rebuildBundles request@2.51.0
npm verb rebuildBundles [ 'aws-sign2',
npm verb rebuildBundles 'bl',
npm verb rebuildBundles 'caseless',
npm verb rebuildBundles 'combined-stream',
npm verb rebuildBundles 'forever-agent',
npm verb rebuildBundles 'form-data',
npm verb rebuildBundles 'hawk',
npm verb rebuildBundles 'http-signature',
npm verb rebuildBundles 'json-stringify-safe',
npm verb rebuildBundles 'mime-types',
npm verb rebuildBundles 'node-uuid',
npm verb rebuildBundles 'oauth-sign',
npm verb rebuildBundles 'qs',
npm verb rebuildBundles 'stringstream',
npm verb rebuildBundles 'tough-cookie',
npm verb rebuildBundles 'tunnel-agent' ]
npm info install request@2.51.0
npm info postinstall request@2.51.0
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf
npm info preinstall rimraf@2.2.8
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff rimraf@2.2.8
npm verb linkBins rimraf@2.2.8
npm verb link bins [ { rimraf: './bin.js' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans rimraf@2.2.8
npm verb rebuildBundles rimraf@2.2.8
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/rimraf
npm info install rimraf@2.2.8
npm info postinstall rimraf@2.2.8
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver
npm info preinstall semver@4.2.0
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff semver@4.2.0
npm verb linkBins semver@4.2.0
npm verb link bins [ { semver: './bin/semver' },
npm verb link bins '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans semver@4.2.0
npm verb rebuildBundles semver@4.2.0
npm verb gentlyRm vacuuming /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/.bin/semver
npm info install semver@4.2.0
npm info postinstall semver@4.2.0
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar
npm info preinstall tar@1.0.3
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff tar@1.0.3
npm verb linkBins tar@1.0.3
npm verb linkMans tar@1.0.3
npm verb rebuildBundles tar@1.0.3
npm verb rebuildBundles [ 'block-stream', 'fstream', 'inherits' ]
npm info install tar@1.0.3
npm info postinstall tar@1.0.3
npm verb rebuild bundle /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
npm info build /Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
npm info preinstall tar-pack@2.0.0
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules' ]
npm info linkStuff tar-pack@2.0.0
npm verb linkBins tar-pack@2.0.0
npm verb linkMans tar-pack@2.0.0
npm verb rebuildBundles tar-pack@2.0.0
npm verb rebuildBundles [ 'debug',
npm verb rebuildBundles 'fstream',
npm verb rebuildBundles 'fstream-ignore',
npm verb rebuildBundles 'graceful-fs',
npm verb rebuildBundles 'once',
npm verb rebuildBundles 'readable-stream',
npm verb rebuildBundles 'tar',
npm verb rebuildBundles 'uid-number' ]
npm info install tar-pack@2.0.0
npm info postinstall tar-pack@2.0.0
npm info install node-pre-gyp@0.6.2
npm info postinstall node-pre-gyp@0.6.2
npm info install sqlite3@3.0.5
> sqlite3@3.0.5 install /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'node',
node-pre-gyp verb cli '/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.2
node-pre-gyp info using node@1.1.0 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.5/node-v43-darwin-x64.tar.gz
node-pre-gyp http 200 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.5/node-v43-darwin-x64.tar.gz
node-pre-gyp info install unpacking node_sqlite3.node
node-pre-gyp info tarball done parsing tarball
node-pre-gyp info validate Running test command: '/Users/robert/.nvm/versions/io.js/v1.1.0/bin/iojs --eval require('/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64/node_sqlite3.node')'
[sqlite3] Success: "/Users/robert/Code/bookshelf-demo/node_modules/sqlite3/lib/binding/node-v43-darwin-x64/node_sqlite3.node" is installed via remote
node-pre-gyp info ok
npm verb unsafe-perm in lifecycle true
npm info postinstall sqlite3@3.0.5
npm verb unlock done using /Users/robert/.npm/_locks/sqlite3-4cd32ef13f01d9f8.lock for /Users/robert/Code/bookshelf-demo/node_modules/sqlite3
sqlite3@3.0.5 node_modules/sqlite3
└── nan@1.6.2
npm verb exit [ 0, true ]
npm info ok
Congratulations.
npm install sqlite3 --verbose --no-rollback
This is a good idea
npm install sqlite3
https://gist.github.com/mucahidyazar/d4ac197e023e8896c7468dd27cca0ec0
This is my error bro. whats wrong on there?
@mucahidyazar gyp ERR! stack Error: Could not find any Python installation to use
When was it that people stopped reading walls of text :) or forgot how to search for ERR..., I wonder.
@mucahidyazar gyp ERR! stack Error: Could not find any Python installation to use
When was it that people stopped reading walls of text :) or forgot how to search for ERR..., I wonder.
Its not because of that because I installed before and I installed last version again after see the pyhton error and I got same error again.
and I tried another code node-gyp configure --msvs_version=2019
and now I get the error https://gist.github.com/mucahidyazar/10b072fc036437402a40f4a628682542
@mucahidyazar gyp ERR! stack Error: Could not find any Visual Studio installation to use
It can't find VS2019 but it finds VS2017
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp verb find VS checking VS2019 (16.0.28729.10) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp verb find VS - "Visual Studio C++ core features" missing
gyp verb find VS checking VS2017 (15.9.28307.557) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v141
gyp verb find VS - found Windows SDK: 10.0.17763.0
gyp verb find VS - msvs_version does not match this version
maybe you should try node-gyp configure --msvs_version=2017
...
Failed at the sqlite3@4.2.0 install script. Help!!! Problem https://github.com/Galooshi/atom-import-js/issues/49 But the problem is in your package
Have anyone solved this issue? Having the same issue
npm ERR! sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build
Alguém resolveu esse problema? Tendo o mesmo problema npm ERR! sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build
Hi, I get an error trying to use sqlite3. I'm new to nodejs (my first project), so I started out installing the latest nodejs, which made me unable to install ( "npm install sqlite3" ) sqlite3 (got lots of errors), then after hours of googling I saw that the newest version of nodejs has bugs, so i downloaded older version (0.10.29). After that installing sqlite3 worked. So I made a test to see if it worked. Made a file sqlitee.js:
When I then run "node sqlitee.js" i get:
I have v3.0.2 of sqlite3 installed. I really have been googling for 6 hours total now, and found nothing that works for me.
I am using Windows 8.
HELP ME PLEASE!