-
Notifications
You must be signed in to change notification settings - Fork 97
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
Can't install on Windows 7 x64 #80
Comments
Could you check out the note from the readme about installing on windows and then feed back? |
Just had a fix from @rvagg which I've published as v2.1.4, this may improve things for you also. |
v2.1.4 does not fix, note from README mentions another issue. |
@chaliy @borysl can you check the list of dependencies required on Windows here and confirm that you have everything? The SDK may be needed unless you're using the 2012 VS. I believe stddef.h comes with the platform SDK. If you have multiple versions of VS installed you may have difficulties too, try uninstalling older ones if you don't need them. Also as the node-gyp instructions say, try removing any redistributables that you have installed. |
I have end up with the problem when node-expat.cc can't find nan.h then I restart installation process, but replace this line with #include "node_modules/nan/nan.h" this time installation was successful. Why it was assumed that nan.h is in default location? |
binding.gyp takes care of including the header. If you have the current version you should see this line exactly in the binding.gyp at the top of the node-expat directory:
Note the quoting. Can you confirm that you have this version? Needs |
I wouldnt close this W7 build issues. Its not fixed. The following error has occurred during XML parsing: File: C:\Users\Padilla\Documents\GitHub\wp2ghost\node_modules\xml-stream\node_modules\node-expat\build\deps\libexpat\expat.vcproj The file 'C:\Users\Padilla\js\node-gyp\node_modules\xml-stream\node_modules\node-expat\build\deps\libexpat\expat.vcproj' has failed to load. I tried looking for it but it deletes the node_modules/xml-parser folder when it crashes. googled everywhere I found myself installing VS 2010, 2012, .Net SDK, and a bunch of things .... with the same error. I guess this is just not made for windows. |
@padillla, You should install node x86 if you are using VS x86 (and node x64 with VS x64). Uninstall VS 2008 if any. |
0 info it worked if it ends with ok |
I have Windows 7 x64 and tried following:
1,2 were failed because of environment
The experiment 3 fails with following error:
D:\Projects\soap_client>npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
D:\Projects\soap_client\node_modules\node-expat>node "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bi
n\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29
6,5): warning MSB8003: Could not find VCInstallDir variable from the registry.
TargetFrameworkVersion or PlatformToolset may be set to an invalid version num
ber. [D:\Projects\soap_client\node_modules\node-expat\build\deps\lib
expat\expat.vcxproj]
xmltok.c
xmlrole.c
xmlparse.c
......\deps\libexpat\lib\xmltok.c(5): fatal error C1083: Cannot open include
file: 'stddef.h': No such file or directory [D:\Projects\soap_client
\node_modules\node-expat\build\deps\libexpat\expat.vcxproj]
......\deps\libexpat\lib\xmlparse.c(5): fatal error C1083: Cannot open includ
e file: 'stddef.h': No such file or directory [D:\Projects\soap_clie
nt\node_modules\node-expat\build\deps\libexpat\expat.vcxproj]
......\deps\libexpat\lib\xmlrole.c(5): fatal error C1083: Cannot open include
file: 'stddef.h': No such file or directory [D:\Projects\soap_clien
t\node_modules\node-expat\build\deps\libexpat\expat.vcxproj]
gyp ERR! build error
gyp ERR! stack Error:
msbuild
failed with exit code: 1gyp 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.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:686:10)
gyp ERR! System Windows_NT 6.1.7601
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 D:\Projects\soap_client\node_modules\node-expat
gyp ERR! node -v v0.8.25
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
The text was updated successfully, but these errors were encountered: