I'm trying to install node-ffi on my Windows development machine, but the install fails. According to the node-ffi webpage, Windows should be supported. However, it appears that gyp is trying to execute something through "sh", which (obviously) is not present on my system. Any ideas?
D:\code\ffi-test>npm install node-ffi
npm http GET https://registry.npmjs.org/node-ffi
npm http 304 https://registry.npmjs.org/node-ffi
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
> [email protected] install D:\code\ffi-test\node_modules\node-ffi
> node-gyp rebuild
D:\code\ffi-test\node_modules\node-ffi>node "D:\Program Files\nodejs\node_module
s\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp http GET http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz
gyp http GET http://nodejs.org/dist/v0.10.13/node.lib
gyp http GET http://nodejs.org/dist/v0.10.13/x64/node.lib
gyp http GET http://nodejs.org/dist/v0.10.13/node.lib
gyp http GET http://nodejs.org/dist/v0.10.13/x64/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.13/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.13/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.13/x64/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.13/x64/node.lib
sh gjenkjennes ikke som en intern eller ekstern kommando,
kjørbart program eller satsvis fil.
gyp: Call to 'sh libffi-config.sh' returned exit status 1. while 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 (D:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:415:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\code\ffi-test\node_modules\node-ffi
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild [email protected]
npm ERR! weird error 1
npm ERR! not ok code 0
D:\code\ffi-test>
My system is Windows 7 x64.
in cmd set Visual Studio path depending upon ur version as
Check if python is installed and configured .
Python version <3 is required
then in cmd use command
to install ffi . For more help look at Cannot install node modules that require compilation on Windows 7 x64/VS2012