NPM, Node-gyp and C1xx: fatal error C1083

682 views
Skip to first unread message

Mikael

unread,
Aug 30, 2013, 11:10:41 AM8/30/13
to nod...@googlegroups.com
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.

Arnout Kazemier

unread,
Aug 30, 2013, 11:40:12 AM8/30/13
to nod...@googlegroups.com
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
--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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 nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mikael

unread,
Sep 2, 2013, 10:55:02 AM9/2/13
to nod...@googlegroups.com
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.

Samora Dake

unread,
Sep 4, 2013, 10:32:55 AM9/4/13
to nod...@googlegroups.com
Make sure you run those commands in a command  prompt with administrator rights.

Mikael Konttinen

unread,
Sep 4, 2013, 2:44:29 PM9/4/13
to nod...@googlegroups.com
Thanks. I do already. It makes no difference. 


2013/9/4 Samora Dake <samor...@gmail.com>

--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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 a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/ai8y4Ds1kqw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages