Well, I'd like to have them dependencies compile properly as well. :) I just made a new install of mongoose and relized it throws errors too, or rather Kerberos does.
C:\Users\Mikael\.node-gyp\0.8.25\Release\node.lib : fatal error LNK1127: library is corrupt [d:\Dev\Node\mongo\node_modules\mongoose\node_modules\mongodb\node _modules\kerberos\build\kerberos.vcxproj] NPM exits OK, but it is still supposed to build on Windows if VC/VS is installed, isn't it? Cheers Mikael. Den fredagen den 30:e augusti 2013 kl. 17:40:12 UTC+2 skrev 3rdEden: > > 1. Its not socket.io that causes this error but a dependency. > 2. Its probably not even an error as building native extensions for the > dependency in question here is optional. > 3. You should install modules locally, not globally unless they are > command line apps. > > If npm exited with OK it was all fine and dandy. But i dont see an okay or > a not okay from the output you posted so I imagine you didnt include it and > the modules were correctly installed > > On Aug 30, 2013, at 17:10, Mikael <[email protected] <javascript:>> wrote: > > Hello all. > > I've got some major problems with installing certain NPM packages on my > Windows workbox. Some packages throw errors, like socket.io (below). > Others fail more disastrously, like Sails that throws errors at > installation and locks up the machine at runtime, requiring a hard reset. > > > This are the errors I get when running 'npm -g install socket.io'. > > bufferutil.cc > c1xx : fatal error C1083: Cannot open source file: > 'C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\node_modules\nan > > /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D > _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D > BUILDING_V8_SHARED=1 /D BUILDING_UV_SHARED=1 /D BUILDING_NODE_EXTENSION /D > _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /GR- > /FoRelease\obj\bufferutil\ /FdRelease\obj\bufferutil\vc110.pdb /Gd /TP > /wd4251 /analyze- /errorReport:queue /MP ..\src\bufferutil.cc': No such > file or directory [C:\Users\Mikael\AppData\Roaming\npm\node_modules\ > socket.io > \node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj] > validation.cc > c1xx : fatal error C1083: Cannot open source file: > 'C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\node_modules\nan > > /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D > _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D > BUILDING_V8_SHARED=1 /D BUILDING_UV_SHARED=1 /D BUILDING_NODE_EXTENSION /D > _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /GR- > /FoRelease\obj\validation\ /FdRelease\obj\validation\vc110.pdb /Gd /TP > /wd4251 /analyze- /errorReport:queue /MP ..\src\validation.cc': No such > file or directory [C:\Users\Mikael\AppData\Roaming\npm\node_modules\ > socket.io > \node_modules\socket.io-client\node_modules\ws\build\validation.vcxproj] > > When I dir the paths mentioned above I see that I have everything there: > > C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io > \node_modules\socket.io-client\node_modules\ws\node_modules\nan > > 2013-08-30 16:04 6 .index.js > 2013-08-30 16:04 1 959 LICENSE > 2013-08-30 16:04 30 241 nan.h > 2013-08-30 16:04 28 068 package.json > 2013-08-30 16:04 26 312 README.md > C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io > \node_modules\socket.io-client\node_modules\ws\build > > 2013-08-30 16:04 8 446 bufferutil.vcxproj > C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io > \node_modules\socket.io-client\node_modules\ws\node_modules\nan > > 2013-08-30 16:04 6 .index.js > 2013-08-30 16:04 1 959 LICENSE > 2013-08-30 16:04 30 241 nan.h > 2013-08-30 16:04 28 068 package.json > 2013-08-30 16:04 26 312 README.md > C:\Users\Mikael\AppData\Roaming\npm\node_modules\socket.io > \node_modules\socket.io-client\node_modules\ws\build > > 2013-08-30 16:04 8 446 validation.vcxproj > > I've followed the installation instructions on node-gyp, tried with both > VC2010 and VS2012. Same thing. > > Versions: > node v0.8.25 > npm v1.2.30 > node-gyp v0.10.9 > python 2.7.5 > Visual Studio 2012 Express For Desktop > Windows 7 64-bit SDK > > The last four are only there as requirements for building npm packages. I > have no experience with VC/VS, C/C++, Python or Node-gyp. Consequently, > searching for solutions on "c1xx : fatal error C1083" didn't result in > anything I could apply and "node-gyp c1xx" lands an issue with node-sass, > but that hit didn't help me resolve this either. > > Help much appreciated. > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] <javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
