Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error on windows 8.1 #19

Open
PawandeepKaur opened this issue Apr 23, 2015 · 3 comments
Open

Installation error on windows 8.1 #19

PawandeepKaur opened this issue Apr 23, 2015 · 3 comments

Comments

@PawandeepKaur
Copy link

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! [email protected] install: node-gyp rebuild
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 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

@Rafi993
Copy link

Rafi993 commented May 10, 2016

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.

@Rafi993
Copy link

Rafi993 commented May 10, 2016

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

@mendeljacks
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants