aaronm67 / node-phash

Phash Bindings for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation error on windows 8.1

PawandeepKaur opened this issue · comments

node-pre-gyp giving me this error..

c:\node_modules\phash>node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\n
ode-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
phash.cpp
..\phash.cpp(3): fatal error C1083: Cannot open include file: 'pHash.h': No suc
h file or directory [c:\node_modules\phash\build\pHash.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files (x86)\nodejs\node_mo
dules\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:810:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd c:\node_modules\phash
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! phash@0.0.5 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phash@0.0.5 install script.
npm ERR! This is most likely a problem with the phash 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 phash
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 Files
(x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "phash"
npm ERR! cwd c:\node_modules
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

commented

this error is caused due to node-gyp. as mentioned here install node-gyp in windows first as given here then try installing the library using npm again. it will work.

commented

@PawandeepKaur please close the issue once you get it running.

I get the same issue, node-gyp did not help
...\node_modules\phash\phash.cpp(3): fatal error C1083: Cannot open include file: 'pHash.h': No such file or directory [C:\Users...