pty.js
pty.js copied to clipboard
Error trying to install modules using this on windows 8.1
Windows 8.1, node 0.10.32, npm 1.4.28, Visual Studio 2013 installed
I am getting an installation error sourced from pty.js which is used by node-gyp. I have to pass a special compilation flag as per this thread on node-gyp
npm install -g madeye --msvs-version=2013
fails with
> [email protected] install C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js
> node-gyp rebuild
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js>node "C:\Program Files\nodejs\node_modules\npm\bin\node-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.
Agent.cc
AgentAssert.cc
ConsoleInput.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\ConsoleInput.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\Agent.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
c:\users\george\appdata\roaming\npm\node_modules\madeye\node_modules\pty.js\deps\winpty\agent\../shared/Buffer.h(45): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (..\..\..\deps\winpty\agent\Agent.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
c:\users\george\appdata\roaming\npm\node_modules\madeye\node_modules\pty.js\deps\winpty\agent\../shared/Buffer.h(51): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data (..\..\..\deps\winpty\agent\Agent.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(117): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(127): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(148): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(164): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(231): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(237): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(344): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(345): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(346): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\ConsoleInput.cc(483): warning C4244: 'return' : conversion from '__int64' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
Coord.cc
EventLoop.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\Coord.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\EventLoop.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\EventLoop.cc(69): error C2039: 'max' : is not a member of 'std' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\EventLoop.cc(69): error C3861: 'max': identifier not found [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\EventLoop.cc(78): warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
NamedPipe.cc
SmallRect.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\NamedPipe.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\SmallRect.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(153): error C2039: 'min' : is not a member of 'std' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(153): error C3861: 'min': identifier not found [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(189): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(202): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(217): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(222): error C2039: 'min' : is not a member of 'std' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(222): error C3861: 'min': identifier not found [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(229): error C2039: 'min' : is not a member of 'std' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(229): error C3861: 'min': identifier not found [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
Terminal.cc
Win32Console.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\Terminal.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\Terminal.cc(129): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\Terminal.cc(151): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\agent\Win32Console.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
main.cc
DebugClient.cc
..\..\..\deps\winpty\shared\DebugClient.cc(37): warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
winpty.cc
DebugClient.cc
..\..\..\deps\winpty\shared\DebugClient.cc(37): warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (..\..\..\deps\winpty\libwinpty\winpty.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
c:\users\george\appdata\roaming\npm\node_modules\madeye\node_modules\pty.js\deps\winpty\libwinpty\../shared/Buffer.h(45): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data (..\..\..\deps\winpty\libwinpty\winpty.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
c:\users\george\appdata\roaming\npm\node_modules\madeye\node_modules\pty.js\deps\winpty\libwinpty\../shared/Buffer.h(51): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data (..\..\..\deps\winpty\libwinpty\winpty.cc) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
..\..\..\deps\winpty\libwinpty\winpty.cc(155): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
..\..\..\deps\winpty\libwinpty\winpty.cc(158): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
..\..\..\deps\winpty\libwinpty\winpty.cc(171): warning C4267: 'initializing' : conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
..\..\..\deps\winpty\libwinpty\winpty.cc(237): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
..\..\..\deps\winpty\libwinpty\winpty.cc(296): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
Creating library C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\Release\winpty.lib and object C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\Release\winpty.exp
Generating code
Finished generating code
winpty.vcxproj -> C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\pty.js\build\Release\\winpty.dll
> [email protected] install C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-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.
bufferutil.cc
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(781): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(798): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(829): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(858): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(646): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(840) : see reference to function template instantiation 'size_t _nan_base64_decode<char>(char *,size_t,const TypeName *,const size_t)' being compiled
with
[
TypeName=char
]
C:\Users\George\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\bufferutil.vcxproj]
Creating library C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\bufferutil.lib and object C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\bufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\\bufferutil.node
validation.cc
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(781): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(798): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(829): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(858): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(646): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\node_modules\nan\nan.h(840) : see reference to function template instantiation 'size_t _nan_base64_decode<char>(char *,size_t,const TypeName *,const size_t)' being compiled
with
[
TypeName=char
]
C:\Users\George\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\validation.vcxproj]
Creating library C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\validation.lib and object C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\validation.exp
Generating code
Finished generating code
validation.vcxproj -> C:\Users\George\AppData\Roaming\npm\node_modules\madeye\node_modules\ws\build\Release\\validation.node
npm : gypnpm ERR! [email protected] install: `node-gyp rebuild`
At line:1 char:1
+ npm install -g madeye --msvs-version=2013 *>w:/temp/madeye-install.log
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (gypnpm ERR! pty...de-gyp rebuild`:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
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 pty.js 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 pty.js
npm
ERR!
There is likely additional logging output above.
npm
ERR!
System
Windows_NT 6.2.9200
npm
ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "madeye" "--msvs-version=2013"
npm ERR! cwd W:\surge\ogre
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm
Any word on this?
+1
So I don't really know what I did to make this work but I somehow got it to work. I opened build/binding.sln in visual studio.
I tried to build it in there and fixed all the errors except for the ones that said error LNK1104.
Then when I went back and did npm install it worked lol. I wish I knew exactly what the problem was to help you guys out but I am pretty sure the c++ code just has some errors in it.