Error while installing Sinch JS RTC as npm package - node.js

I need to use Sinch IM feature from my backend server and I am trying to install sinch-rtc as node.js package. I get the following error when I use the command : npm install sinch-rtc --save
Here is the Debug Log,
Please correct me if I am missing something. Thanks.
npm WARN engine agentkeepalive#0.2.4: wanted: {"node":"0.10.x"} (current: {"node":"4.2.2","npm":"2.14.7"})
|
> wrtc#0.0.55 install C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc
> node-pre-gyp install --fallback-to-build
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 32-bit node.lib
gyp ERR! stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\node_modules\node-gyp\lib\install.js:369:20)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onRequestResponse (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:998:10)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:305:20)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\sinch-rtc\\node_modules\\wrtc\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\sinch-rtc\\node_modules\\wrtc\\build\\wrtc\\v0.0.55\\Release\\node-v46-win32-x64\\wrtc.node" "--module_name=wrtc" "--module_path=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\sinch-rtc\\node_modules\\wrtc\\build\\wrtc\\v0.0.55\\Release\\node-v46-win32-x64"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\build\wrtc\v0.0.55\Release\node-v46-win32-x64\wrtc.node --module_name=wrtc --module_path=C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\build\wrtc\v0.0.55\Release\node-v46-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\node_modules\node-pre-gyp\lib\util\compile.js:73:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.10240
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\sinch-rtc\\node_modules\\wrtc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc
node-pre-gyp ERR! node -v v4.2.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.4
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\build\wrtc\v0.0.55\Release\node-v46-win32-x64\wrtc.node --module_name=wrtc --module_path=C:\Program Files\nodejs\node_modules\npm\node_modules\sinch-rtc\node_modules\wrtc\build\wrtc\v0.0.55\Release\node-v46-win32-x64' (1)
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sinch-rtc" "--save"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! wrtc#0.0.55 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wrtc#0.0.55 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the wrtc 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 wrtc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Program Files\nodejs\node_modules\npm\npm-debug.log

The problem you are facinc is node-gyp doesnt work on your system.
Follow the instructions on node-gyp https://github.com/nodejs/node-gyp and try to install node-gyp only to start with.

Related

Error when trying to install firebase-admin via npm

I'm getting an error when I try to install firebase-admin:
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\TOYANSK\AppData\Roaming\npm\node_modules\npm\node_modules\node-
gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TOYANSK\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\TOYANSK\\Documents\\Projects\\people\\functions\\node_modules\\grpc\\src\\node\\extension_binary\\node-v48-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\TOYANSK\\Documents\\Projects\\people\\functions\\node_modules\\grpc\\src\\node\\extension_binary\\node-v48-win32-x64-unknown"
gyp ERR! cwd C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program
Files\nodejs\node.exe C:\Users\TOYANSK\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:891:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TOYANSK\\Documents\\Projects\\people\\functions\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc
node-pre-gyp ERR! node -v v6.11.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\TOYANSK\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\TOYANSK\Documents\Projects\people\functions\node_modules\grpc\src\node\extension_binary\node-v48-win32-x64-unknown' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc#1.7.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc#1.7.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TOYANSK\AppData\Roaming\npm-cache\_logs\2018-02-09T23_37_53_013Z-debug.log
To solve this problem, I have tried a lot of things, with no success so far:
I try to update node-gyp and node-pre-gyp
I install Python and MSBuild Tools
I follow this: Why does MSBuild look in C:\ for Microsoft.Cpp.Default.props instead of c:\Program Files (x86)\MSBuild? ( error MSB4019).
I downgraded Node.js: https://www.bountysource.com/issues/38994433-failed-to-install-grpc-version-1-0-1.
And also I try to follow these steps:
Can't install firebase-admin with npm.
But nothing changes the final result. I use Windows 10 64-bit, Node.js v6.11.2 (it was 8.4.0), NPM 5.6.0.
A curious fact is that the error also occurs during the firebase init, which allows to continue even after the error in npm install.
Maybe for this reason firebase-admin has not been previously installed, even being in the package.json of the functions directory
What if you try running npm install -g windows-build-tools in Powershell as admin, as suggested in this answer?
Your stack trace includes node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\TOYANSK\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build ... which most likely means you don't have the node-gyp library installed.
The title of the question that answer addresses is npm install that requires node-gyp fails on Windows.

Error while installing opencv in nodejs

I am trying to install opencv in nodejs on windows 10,But getting below error,Can any assist me?
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\opencv\\build\\opencv\\v6.0.0\\Release\\node-v57-win32-x64\\opencv.node" "--module_name=opencv" "--module_path=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\opencv\\build\\opencv\\v6.0.0\\Release\\node-v57-win32-x64"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\npm\node_modules\opencv
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Program Files\nodejs\node_modules\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v57-win32-x64\opencv.node
--module_name=opencv --module_path=C:\Program Files\nodejs\node_modules\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\opencv\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:921:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\opencv\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Program Files\nodejs\node_modules\npm\node_modules\opencv
node-pre-gyp ERR! node -v v8.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Program Files\nodejs\node_modules\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v57-win32-x64\opencv.node
--module_name=opencv --module_path=C:\Program Files\nodejs\node_modules\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v57-win32-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv#6.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv#6.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\suresh\AppData\Roaming\npm-cache\_logs\2017-08-03T18_05_40_307Z-debug.log
C:\Program Files\nodejs\node_modules\npm>
Try to download Visual C++ 2015 Build Tools from here.
After installing run this command:
npm config -g set msvs_version 2015

Error while installing opencv in windows 7 and node version #6

I am getting following error while installing opencv in windows 7 and node version #6
> opencv#6.0.0 install C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Relea
se/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv#6.0.0 and node#6.7.0 (node-v48 ABI) (fal
ling back to source compile with node-gyp)
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\admin1\Desktop\video_p
ost\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node --mo
dule_name=opencv --module_path=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\b
uild\opencv\v6.0.0\Release\node-v48-win32-x64 ) else (node "" configure --fallback-to-build --mod
ule=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\
node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\admin1\Desktop\video_po
st\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64 )
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\utils\find-opencv.js:39
throw new Error("ERROR: OPENCV_DIR doesn't seem to be defined");
^
Error: ERROR: OPENCV_DIR doesn't seem to be defined
at C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\utils\find-opencv.js:39:1
9
at ChildProcess.exithandler (child_process.js:197:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
gyp: Call to 'node utils/find-opencv.js --cflags' returned exit status 1 while in binding.gyp. whi
le trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\
node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin1\\AppData\\Roaming\\npm\\
node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--
module=C:\\Users\\admin1\\Desktop\\video_post\\video_post\\node_modules\\opencv\\build\\opencv\\v6
.0.0\\Release\\node-v48-win32-x64\\opencv.node" "--module_name=opencv" "--module_path=C:\\Users\\a
dmin1\\Desktop\\video_post\\video_post\\node_modules\\opencv\\build\\opencv\\v6.0.0\\Release\\node
-v48-win32-x64"
gyp ERR! cwd C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv
gyp ERR! node -v v6.7.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --mod
ule=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\
node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\admin1\Desktop\video_po
st\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\admin1\Desktop\video_post\video_
post\node_modules\opencv\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:
5)
node-pre-gyp ERR! System Windows_NT 6.1.7600
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin1\\Desktop\\video
_post\\video_post\\node_modules\\opencv\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install"
"--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv
node-pre-gyp ERR! node -v v6.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.34
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\admin1\Desktop\vid
eo_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node
--module_name=opencv --module_path=C:\Users\admin1\Desktop\video_post\video_post\node_modules\open
cv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
npm WARN video_post# No description
npm WARN video_post# No repository field.
npm WARN video_post# No license field.
npm WARN In opencv#6.0.0 replacing bundled version of node-pre-gyp with node-pre-gyp#0.6.34
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv#6.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv#6.0.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the opencv 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 information on how to open an issue for this project with:
npm ERR! npm bugs opencv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls opencv
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin1\AppData\Roaming\npm-cache\_logs\2017-05-06T05_25_57_891Z-debug.log

npm install sqlite3 --build-from-source error with electron

When trying to use sqlite with electron i've been getting this error in the web console
Error: Cannot find module 'C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\el ectron-v1.4-win32-ia32\node_sqlite3.node'
After reading some posts in the site i've seen that by using
npm install sqlite3 --build-from-source
I can fix this error, however when i tried to do so i got the following message
sqlite3#3.1.8 install C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3
node-pre-gyp install --fallback-to-build
C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3>if not defined npm_config_node_gyp (node "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3>if not defined npm_config_node_gyp (node "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32 ) else (node "" configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32 )
gyp ERR! configure error
gyp ERR! stack Error: Python executable
"C:\Users\Alejandro\AppData\Local\Programs\Python\Python35-32\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:14)
gyp ERR! stack at C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-
gyp\lib\configure.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe"
"C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32"
gyp ERR! cwd C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-
build"
node-pre-gyp ERR! cwd C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3
node-pre-gyp ERR! node -v v6.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32' (1)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "sqlite3" "--build-from-source"
npm ERR! node v6.9.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! sqlite3#3.1.8 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#3.1.8 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the 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 information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, 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! C:\Users\Alejandro\Documents\Proyectos\format\npm-debug.log
I've already tried installing the node-gyp and node-pre-gyp dependancies and still get the same error

Npm install zmq windows7

I'm trying to install zmq on windows 7 with npm, but it fails with this error:
>C:\Windows\system32\node_modules\zmq>node "C:\Program Files\nodejs\node_modules\
npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
/MSBUILD : error MSB1009: 프로젝트 파일이 없습니다.
스위치: build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-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:809: 12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\node_modules\zmq
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! zmq#2.7.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq#2.7.0 install script.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "zmq"
npm ERR! cwd C:\Windows\system32
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! C:\Windows\system32\npm-debug.log
npm ERR! not ok code 0
I saw a lot of posts about it but none of them provides me a solution.
I installed visual studio express and set the PYTHONPATH environment variable (I also tried to set the PYTHON variable, not working), as described here https://github.com/JustinTulloss/zeromq.node/wiki/Installation
I'm really stucked here, I appreciate any help, thank's in advance.
EDIT: when I run node-gyp rebuild manually in the console I got this :
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Bureau1\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Bureau1\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Bureau1\Desktop\app
gyp ERR! node -v v5.1.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok

Resources