Node-sqlite3: Cannot find module after building for node-webkit

Created on 11 Aug 2014  ·  30Comments  ·  Source: mapbox/node-sqlite3

After installing for node-webkit –

npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.10.1

– node-webkit crashes with the error:

Cannot find module '[...]source/node_modules/sqlite3/lib/binding/node-webkit-v14-darwin-v64/node_sqlite3.node

The available folder in binding is called node-webkit-v0.10.1-darwin-x64. Renaming this to the expected name in the error allows the app to run.

Most helpful comment

Hi folks, I'm trying to build a standalone Mac OS X executable that includes sqlite3 built for node-webkit. I am experiencing the build issue above (believe it is #329). The upgrading node-pre-gyp as follows fixed build binding path name problem:

npm install node-pre-gyp latest -g

Then building sqlite3 module in my application directory again fails (with many errors). But building again and specifying the external sqlite library (loaded with brew) produces a working module:

npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.10.5 --sqlite=/usr/local

$ /usr/local/opt/sqlite/bin/sqlite3 -version 3.8.5 2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212

Is there a dependency on a specific version of sqlite3 source? The one that is being pulled by the build tool appears not to be correct.

All 30 comments

Thanks for reporting. This is some clash in the node-pre-gyp version used. Can you clear out your npm cache and then see if you can still replicate?

I'm having a same/similar problem:

$ npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target="0.8.4"
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN deprecated [email protected]: Use setimmediate instead
|

[email protected] install /Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node-webkit --node_abi=node-webkit-v0.8.4 --target=0.8.4 --platform=darwin --target_platform=darwin --arch=ia32 --target_arch=ia32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3/lib/binding/node-webkit-v0.8.4-darwin-ia32 --remote_path=./sqlite3/v2.2.7/ --package_name=node-webkit-v0.8.4-darwin-ia32.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-webkit-v0.8.4-darwin-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-webkit-v0.8.4-darwin-ia32.tar.gz' (Error: spawn ENOENT)
node-pre-gyp ERR! stack at ChildProcess. (/Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:70:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:95:17)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:808:12)
node-pre-gyp ERR! System Darwin 13.2.0
node-pre-gyp ERR! command "node" "/Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3
node-pre-gyp ERR! node -v v0.10.30
node-pre-gyp ERR! node-pre-gyp -v v0.5.22
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node-webkit --node_abi=node-webkit-v0.8.4 --target=0.8.4 --platform=darwin --target_platform=darwin --arch=ia32 --target_arch=ia32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Volumes/Pylos/Projects/FED/interactive_projection/Resources/node_modules/sqlite3/lib/binding/node-webkit-v0.8.4-darwin-ia32 --remote_path=./sqlite3/v2.2.7/ --package_name=node-webkit-v0.8.4-darwin-ia32.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-webkit-v0.8.4-darwin-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-webkit-v0.8.4-darwin-ia32.tar.gz' (Error: spawn ENOENT)
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 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 Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite3" "--build-from-source" "--runtime=node-webkit" "--target_arch=ia32" "--target=0.8.4"
npm ERR! cwd /Volumes/Pylos/Projects/FED/interactive_projection/Resources
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Volumes/Pylos/Projects/FED/interactive_projection/Resources/npm-debug.log
npm ERR! not ok code 0

@cupofnestor try --target=0.8.6 (there are no binaries available for v0.8.4).

Thanks for the reply, Dane. I believe that I tried 0.8.6 as well. Are you referring to the availability of sqlite binaries, or nw itself? Is there a list of available tarballs?

On Aug 25, 2014, at 6:06 PM, Dane Springmeyer [email protected] wrote:

@cupofnestor try --target=0.8.6 (there are no binaries available for v0.8.4).


Reply to this email directly or view it on GitHub.

I am facing same problem in windows and stuck for last 2 days. Can you please help.
With normal "npm install sqlite3" the application crashes when i start it.
if I try to build from source, that also not working. Please check the below error.

D:\apps\Node Webkit\nodebob-master\app>npm install sqlite3 --build-from-source -
-runtime=node-webkit --target_arch=ia32 --target=0.10.29
npm WARN package.json app@ No description
npm WARN package.json app@ No repository field.
npm WARN package.json app@ No README data
npm WARN deprecated [email protected]: Use setimmediate instead
|

[email protected] install D:\apps\Node Webkit\nodebob-master\app\node_modules\sqli
te3
node-pre-gyp install --fallback-to-build

\
module.js:340
throw err;
^
Error: Cannot find module 'D:\apps\Node Webkit\nodebob-master\app\node_modules\n
w-gyp\bin\nw-gyp.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd rebuild --name=sqli
te3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2
--minor=2 --patch=7 --runtime=node-webkit --node_abi=node-webkit-v0.10.29 --tar
get=0.10.29 --platform=win32 --target_platform=win32 --arch=ia32 --target_arch=i
a32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.c
om/ --module_path=D:\apps\Node Webkit\nodebob-master\app\node_modules\sqlite3\li
bbinding\node-webkit-v0.10.29-win32-ia32 --remote_path=./sqlite3/v2.2.7/ --pack
age_name=node-webkit-v0.10.29-win32-ia32.tar.gz --staged_tarball=build\stage\sql
ite3\v2.2.7\node-webkit-v0.10.29-win32-ia32.tar.gz --hosted_path=https://mapbox-
node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-nod
e-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-webkit-v0.10.29-win32-ia32.tar.gz'
(8)
node-pre-gyp ERR! stack at ChildProcess. (D:\apps\Node Webkit\nod
ebob-master\app\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.
js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:755:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_proces
s.js:822:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "node" "D:\apps\Node Webkit\nodebob-master\app\no
de_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "-
-fallback-to-build"
node-pre-gyp ERR! cwd D:\apps\Node Webkit\nodebob-master\app\node_modules\sqlite
3
node-pre-gyp ERR! node -v v0.10.29
node-pre-gyp ERR! node-pre-gyp -v v0.5.22
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd rebuild --name=sqlite3 --configuration=Release --m
odule_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=
node-webkit --node_abi=node-webkit-v0.10.29 --target=0.10.29 --platform=win32 --
target_platform=win32 --arch=ia32 --target_arch=ia32 --module_main=./lib/sqlite3
--host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=D:\apps\Node
Webkit\nodebob-master\app\node_modules\sqlite3\libbinding\node-webkit-v0.10.29-
win32-ia32 --remote_path=./sqlite3/v2.2.7/ --package_name=node-webkit-v0.10.29-w
in32-ia32.tar.gz --staged_tarball=build\stage\sqlite3\v2.2.7\node-webkit-v0.10.2
9-win32-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sq
lite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlit
e3/v2.2.7/node-webkit-v0.10.29-win32-ia32.tar.gz' (8)
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 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.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sqlite3" "--buil
d-from-source" "--runtime=node-webkit" "--target_arch=ia32" "--target=0.10.29"
npm ERR! cwd D:\apps\Node Webkit\nodebob-master\app
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\apps\Node Webkit\nodebob-master\app\npm-debug.log
npm ERR! not ok code 0

Even rebuilding is not working

D:\apps\Node Webkit\nodebob-master\app\node_modules\sqlite3>nw-gyp rebuild --tar
get=0.10.29 --arch=ia32
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET http://node-webkit.s3.amazonaws.com/v0.10.29/nw-headers-v0.10.29.ta
r.gz
gyp http 404 http://node-webkit.s3.amazonaws.com/v0.10.29/nw-headers-v0.10.29.ta
r.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading tarball
gyp ERR! stack at Request. (C:\Users\709953rkbh\AppData\Roaming\n
pm\node_modules\nw-gyp\lib\install.js:234:14)
gyp ERR! stack at Request.emit (events.js:117:20)
gyp ERR! stack at Request.onResponse (C:\Users\709953rkbh\AppData\Roaming\np
m\node_modules\nw-gyp\node_modules\request\request.js:1085:10)
gyp ERR! stack at ClientRequest.g (events.js:180:16)
gyp ERR! stack at ClientRequest.emit (events.js:95:17)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (http.js:1688:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete as onHeadersComplete
gyp ERR! stack at Socket.socketOnData (http.js:1583:20)
gyp ERR! stack at TCP.onread (net.js:527:27)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Users\709953rkbh\AppData\Roaming\npm\node_modu
les\nw-gyp\bin\nw-gyp.js" "rebuild" "--target=0.10.29" "--arch=ia32"
gyp ERR! cwd D:\apps\Node Webkit\nodebob-master\app\node_modules\sqlite3
gyp ERR! node -v v0.10.29
gyp ERR! nw-gyp -v v0.12.2
gyp ERR! not ok

@arunkabraham You should give the node-webkit's target version to nw-gyp. You can't run nw-gyp rebuild --target=0.10.29 --arch=ia32 because the most recent node-webkit is v0.10.4. That's why you get error 404 from http://node-webkit.s3.amazonaws.com/v0.10.29/nw-headers-v0.10.29.tar.gz and rebuilding fails.

I have tried : nw-gyp rebuild --target=0.10.4 --arch=ia32

I am getting the following error.

C:\nodewebkit\node_modules\sqlite3>nw-gyp rebuild --target=0.10.4 --arch=ia32
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET http://node-webkit.s3.amazonaws.com/v0.10.4/nw-headers-v0.10.4.tar.
gz
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.10.4/nw-headers-v0.10.4.tar.
gz
gyp http GET http://node-webkit.s3.amazonaws.com/v0.10.4/nw.lib
gyp http GET http://node-webkit.s3.amazonaws.com/v0.10.4/nw.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.10.4/nw.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.10.4/nw.lib
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Users\arunk\AppData\Roaming\npm\node_modules\nw
-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\nodewebkit\node_modules\sqlite3\build\config.gypi
',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\arunk\AppData\Roaming\npm\node_modules\nw
-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\arunk.nw-gyp\0.10.4\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\arunk.nw-gyp\0.10.4',
gyp info spawn args '-Dmodule_root_dir=C:\nodewebkit\node_modules\sqlite3',

gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\nodewebkit\node_modules\sqlite3\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: Undefined variable module_name in binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\arunk\AppData\Roaming\npm\
node_modulesnw-gyp\lib\configure.js:352:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Users\arunk\AppData\Roaming\npm\node_modules\
nw-gyp\binnw-gyp.js" "rebuild" "--target=0.10.4" "--arch=ia32"
gyp ERR! cwd C:\nodewebkit\node_modules\sqlite3
gyp ERR! node -v v0.10.31
gyp ERR! nw-gyp -v v0.12.2
gyp ERR! not ok

Ok, the 404 error is gone and now we are facing something else.

The versions of nw-gyp and node are fine, but what does python --version (C:\Python27\python.exe --version) report?

C:\Python27>python.exe --version
Python 2.7.3

That version's fine as well.

I'm out of ideas.

@springmeyer Would you please npm publish and [publish binary]? — it might work around whatever issues end users have with building for this version (0.10.4) of node-webkit.

I somehow want to get it working. Can you please suggest the versions of each of the components which will work without any issues.

We are building the sqlite3 module on AppVeyor:

https://ci.appveyor.com/project/Mapbox/node-sqlite3/history

Builds for node-webkit v0.10.4 are completed fine there, but I don't see any real differences in the dependencies' versions against yours.

I am experiencing problem only with sqlite3 module. So is it possible to download the one which is already built for Windows7+nodewebkit 0.10.4 from somewhere? Or can you please build and share it with me. I am stuck with it.

Can you please build and share sqlite3 module for Windows7 + nodewebkit 0.10.4
Email : [email protected]

Did install node-pre-gyp latest and I can confirm first issue reported by @csugden is now fixed. (don't need to rename folder in lib/binding anymore)

Okay, let's assume that this issue is fixed by upgrading to a new version of node-pre-gyp package containing the code from mapbox/node-pre-gyp#111.

Can someone build sqlite3 module for nodewebkit 0.8.6 and share me. I am totally stuck at this position. Tried to build from source but getting error on top of error. Please build it and share to [email protected]

Node version : 0.10.29
Nodewebkit version : 0.8.6

I just need the artificats for "Environment: nodejs_version=0.10.30, nw_version=0.8.6, PLATFORM=x86"

Thank you so much Mithgol

@Mithgol hi! When i package my app with grunt-node-webkit i have a error "error ... not found in my app data ... sqlite3.node". The file exists. and in debug mode with nw.exe the sqlite3 node module run. A idea ? thank you in advance

@mslimani What's the name of your packaged app? (You are probably experiencing the issue rogerwang/node-webkit#199, that's what I think.)

Hi folks, I'm trying to build a standalone Mac OS X executable that includes sqlite3 built for node-webkit. I am experiencing the build issue above (believe it is #329). The upgrading node-pre-gyp as follows fixed build binding path name problem:

npm install node-pre-gyp latest -g

Then building sqlite3 module in my application directory again fails (with many errors). But building again and specifying the external sqlite library (loaded with brew) produces a working module:

npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.10.5 --sqlite=/usr/local

$ /usr/local/opt/sqlite/bin/sqlite3 -version 3.8.5 2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212

Is there a dependency on a specific version of sqlite3 source? The one that is being pulled by the build tool appears not to be correct.

I am packaging this node-webkit application with the sqlite3 module for standalone installation on Mac OS X systems. Is there a preferred way to install the sqlite3 module without all the source and build sub-directories, etc...? When I build from source as directed (and as worked around in my previous comment), the module directory is unnecessarily cluttered with files that will never be used at runtime.

Is there a recommended way to build or package the module for distribution?

I would be grateful for guidance as to which of the sqlite3 module bits must be delivered and which files can safely be dropped from the final standalone app Contents. Or for a make target that will clean up after the build.

I noticed this issue is closed but I followed webkit install instructions listed on website and I get a ton of errors:

Microsoft Windows XP Version 5.1.2600 Copyright 1985-2001 Microsoft Corp.

C:\NETSHARE\data\devprojects\nw\DBUtil>npm install sqlite3 --build-from-source --runtime="node-webki
t" --target_arch="ia32" --target="0.11.4"
npm WARN package.json DBUtil@ No description
npm WARN package.json DBUtil@ No repository field.
npm WARN package.json DBUtil@ No README data
\

[email protected] install C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
node-pre-gyp install --fallback-to-build

unpack_sqlite_dep
sqlite3.c
sqlite3.vcxproj -> C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\Release\sql
ite3.lib
database.cc
..\src\database.cc(134): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments
[C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(135): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments
[C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
node_sqlite3.cc
..\src\node_sqlite3.cc(23): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(24): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(25): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(26): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(28): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(30): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(32): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(33): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(34): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(35): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(36): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(37): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(38): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(39): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(40): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(41): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(42): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(43): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(44): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(45): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(46): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(47): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(48): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(49): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(50): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(51): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(52): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(53): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(54): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(55): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(56): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(57): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(58): error C2661: 'v8::Object::Set' : no overloaded function takes 3 argumen
ts [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
statement.cc
..\src\statement.cc(105): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments
[C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(278): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible
loss of data [C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\node_sqlite3.vcxpro
j]
gyp ERR! build error
gyp ERR! stack Error: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit c
ode: 1
gyp ERR! stack at ChildProcess.onExit (C:\Documents and Settings\admin\Application Data\npm\node
_modulesnw-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "node" "C:\Documents and Settings\admin\Application Data\npm\node_modules\nw-
gyp\binnw-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite
3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=node-webkit" "--node_abi=node-webkit-v0.11.4
" "--target=0.11.4" "--platform=win32" "--target_platform=win32" "--arch=ia32" "--target_arch=ia32"
"--module_main=./lib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=C
:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\libbinding\node-webkit-v0.11.4
-win32-ia32" "--module=C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\lib\bind
ing\node-webkit-v0.11.4-win32-ia32\node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/" "--package
_name=node-webkit-v0.11.4-win32-ia32.tar.gz" "--staged_tarball=build\stagesqlite3\v3.0.4\node-w
ebkit-v0.11.4-win32-ia32.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-webkit-v0
.11.4-win32-ia32.tar.gz"
gyp ERR! cwd C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
gyp ERR! node -v v0.10.33
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd rebuild --name=sqlite3 --configuration=
Release --module_name=node_sqlite3 --version=3.0.4 --major=3 --patch=4 --runtime=node-webkit --node_
abi=node-webkit-v0.11.4 --target=0.11.4 --platform=win32 --target_platform=win32 --arch=ia32 --targe
t_arch=ia32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module
_path=C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\libbinding\node-webkit-v0.11.4-wi
n32-ia32 --module=C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\libbinding\node-webki
t-v0.11.4-win32-ia32\node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-webkit-v0
.11.4-win32-ia32.tar.gz --staged_tarball=build\stagesqlite3\v3.0.4\node-webkit-v0.11.4-win32-ia32.t
ar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=htt
ps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-webkit-v0.11.4-win32-ia32.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\NETSHARE\data\devprojects\nw\DBUtil\node
_modulessqlite3\node_modulesnode-pre-gyp\lib\util\compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:756:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:823:5)
node-pre-gyp ERR! System Windows_NT 5.1.2600
node-pre-gyp ERR! command "node" "C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
\node_modulesnode-pre-gyp\binnode-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
node-pre-gyp ERR! node -v v0.10.33
node-pre-gyp ERR! node-pre-gyp -v v0.6.1
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd rebuild --name=sqlite3 --configuration=Release --module_name=node_sqli
te3 --version=3.0.4 --major=3 --patch=4 --runtime=node-webkit --node_abi=node-webkit-v0.11.4 --targe
t=0.11.4 --platform=win32 --target_platform=win32 --arch=ia32 --target_arch=ia32 --module_main=./lib
/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=C:\NETSHARE\data\devproje
cts\nw\DBUtil\node_modulessqlite3\libbinding\node-webkit-v0.11.4-win32-ia32 --module=C:\NETSHARE\d
ata\devprojects\nw\DBUtil\node_modulessqlite3\libbinding\node-webkit-v0.11.4-win32-ia32\node_sqlit
e3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-webkit-v0.11.4-win32-ia32.tar.gz --stage
d_tarball=build\stagesqlite3\v3.0.4\node-webkit-v0.11.4-win32-ia32.tar.gz --hosted_path=https://map
box-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amaz
onaws.com/sqlite3/v3.0.4/node-webkit-v0.11.4-win32-ia32.tar.gz' (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 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 5.1.2600
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\n
pm\bin\npm-cli.js" "install" "sqlite3" "--build-from-source" "--runtime=node-webkit" "--target_arc
h=ia32" "--target=0.11.4"
npm ERR! cwd C:\NETSHARE\data\devprojects\nw\DBUtil
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

C:\NETSHARE\data\devprojects\nw\DBUtil>

Attempting a node install and then a rebuild produces the following:

C:\NETSHARE\data\devprojects\nw\DBUtil>npm install sqlite3
npm WARN package.json DBUtil@ No description
npm WARN package.json DBUtil@ No repository field.

npm WARN package.json DBUtil@ No README data

[email protected] install C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
node-pre-gyp install --fallback-to-build

[sqlite3] Success: "C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\libbinding\node-v11
-win32-ia32\node_sqlite3.node" is installed via remote
[email protected] node_modulessqlite3
└── [email protected]

C:\NETSHARE\data\devprojects\nw\DBUtil>cd node_modules

C:\NETSHARE\data\devprojects\nw\DBUtil\node_modules>cd sqlite3

C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3>nw-gyp rebuild --target="0.11.4"
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\Documents and Settings\admin\Application Data\npm\node_modules\nw-gy
pgypgyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build\co
nfig.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Documents and Settings\admin\Application Data\npm\node_modules\nw-gy
p\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Documents and Settings\admin.nw-gyp\0.11.4\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Documents and Settings\admin.nw-gyp\0.11.4',
gyp info spawn args '-Dmodule_root_dir=C:\NETSHARE\data\devprojects\nw\DBUtil\node_modules\
sqlite3',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: Undefined variable module_name in binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Documents and Settings\admin\Application Data\npm\no
de_modulesnw-gyp\lib\configure.js:353:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "node" "C:\Documents and Settings\admin\Application Data\npm\node_modules\nw-
gyp\binnw-gyp.js" "rebuild" "--target=0.11.4"
gyp ERR! cwd C:\NETSHARE\data\devprojects\nw\DBUtil\node_modulessqlite3
gyp ERR! node -v v0.10.33
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok

@rss181919 I have an impression that you are affected by the issue fixed in mapbox/node-sqlite3#369.

@springmeyer A new release of the npm package is probably necessary to prevent such issues from happening in the future.

Cannot build for node webkit
npm install nw-gyp -g
npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target=0.12.3

E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_modulessqlite3>if not de
ned npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\no
-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node cl
n )
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
Building the projects in this solution one at a time. To enable parallel build
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.
argets(55,5): error MSB8020: The build tools for Visual Studio 2010 (Platform
oolset = 'v100') cannot be found. To build using the v100 build tools, please
nstall Visual Studio 2010 build tools. Alternatively, you may upgrade to the
urrent Visual Studio tools by selecting the Project menu or right-click the so
ution, and then selecting "Retarget solution". [E:\PERSONAL-PROJECTS\CPADTool\
PADTool\CPADTool\node_modulessqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fa
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\mwadood\AppData\Roaming\np
node_modulesnw-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:10
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Users\mwadood\AppData\Roaming\npm\node_modul
nw-gyp\binnw-gyp.js" "build" "--fallback-to-build" "--module=E:\PERSONAL
ROJECTS\CPADTool\CPADTool\CPADTool\node_modulessqlite3\libbinding\no
-webkit-v0.12.3-win32-ia32\node_sqlite3.node" "--module_name=node_sqlite3" "-
odule_path=E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_modules\
lite3\libbinding\node-webkit-v0.12.3-win32-ia32"
gyp ERR! cwd E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_modules\sqli
3
gyp ERR! node -v v0.12.7
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd build --fallback-
-build --module=E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_modules\s
ite3\libbinding\node-webkit-v0.12.3-win32-ia32\node_sqlite3.node --module_nam
node_sqlite3 --module_path=E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\nod
modulessqlite3\libbinding\node-webkit-v0.12.3-win32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (E:\PERSONAL-PROJECTS\
ADTool\CPADTool\CPADTool\node_modulessqlite3\node_modulesnode-pre-gyp\lib\ut
\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1015:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_proc
s.js:1087:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "node" "E:\PERSONAL-PROJECTS\CPADTool\CPADTool\C
DTool\node_modulessqlite3\node_modulesnode-pre-gyp\binnode-pre-gyp" "
stall" "--fallback-to-build"
node-pre-gyp ERR! cwd E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_mod
essqlite3
node-pre-gyp ERR! node -v v0.12.7
node-pre-gyp ERR! node-pre-gyp -v v0.6.10
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd build --fallback-to-build --module=E:\PERSONAL-P
JECTS\CPADTool\CPADTool\CPADTool\node_modulessqlite3\libbinding\node-webkit-
.12.3-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=E:
ERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\node_modulessqlite3\libbinding\n
e-webkit-v0.12.3-win32-ia32' (1)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\node
\node_modules\npm\bin\npm-cli.js" "install" "sqlite3" "--build-from-source
"--runtime=node-webkit" "--target_arch=ia32" "--target=0.12.3"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE

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 'node-pre-gyp install --fa
back-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.

npm ERR! Please include the following file with any support request:
npm ERR! E:\PERSONAL-PROJECTS\CPADTool\CPADTool\CPADTool\npm-debug.log

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hersoncruz picture hersoncruz  ·  27Comments

wotermelon picture wotermelon  ·  24Comments

springmeyer picture springmeyer  ·  29Comments

ellogwen picture ellogwen  ·  15Comments

coolaj86 picture coolaj86  ·  28Comments