Closed
Description
Hello!
I have installed sqlite3 locally:
path-to-nw-project
> npm install sqlite3
npm WARN package.json nw-sb@0.1.0 No repository field.
npm WARN package.json nw-sb@0.1.0 No README data
/
> sqlite3@3.0.2 install path-to-nw-project\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
[sqlite3] Success: "path-to-nw-project\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node" is installed via remote
sqlite3@3.0.2 node_modules\sqlite3
└── nan@1.3.0
I want to use it in node-webkit app, so I should rebuild it with nw-gyp:
path-to-nw-project\node_modules\sqlite3
> nw-gyp rebuild --target=0.10.5 --python=C:\Python\27\python.exe
gyp info it worked if it ends with ok
gyp info using nw-gyp@0.12.2
gyp info using node@0.10.32 | win32 | ia32
gyp info spawn C:\Python\27\python.exe
gyp info spawn args [ 'C:\\NodeJS\\node_modules\\global\\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 'path-to-nw-project\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\NodeJS\\node_modules\\global\\node_modules\\nw-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'path-to-user-profile\\.nw-gyp\\0.10.5\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=path-to-user-profile\\.nw-gyp\\0.10.5',
gyp info spawn args '-Dmodule_root_dir=path-to-nw-project\\node_modules\\sqlite3',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'path-to-nw-project\\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:\NodeJS\node_modules\global\node_modules\nw-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:\\NodeJS\\node_modules\\global\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "rebuild" "--target=0.10.5" "--python=C:\\Python\\27\\python.exe"
gyp ERR! cwd path-to-nw-project\node_modules\sqlite3
gyp ERR! node -v v0.10.32
gyp ERR! nw-gyp -v v0.12.2
gyp ERR! not ok
I have Node-Webkit 0.10.5, VisualStudio Express 2013, and Python 2.7.6 (but as secondary, it isn't in PATH env. variable, so I passed --python
argument). And then it failed. Any ideas?
Metadata
Metadata
Assignees
Labels
No labels