pty.js
pty.js copied to clipboard
Installation fails (max is not a template of std among others)
I tried to install ttystudio, but I got this error message:
R:\>npm install ttystudio -g
-
> [email protected] install C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty.js
> node-gyp rebuild
C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty.js>if not defined npm_config_node_gyp (node "C:\Users\User\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node 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
Coord.cc
EventLoop.cc
..\..\..\deps\winpty\agent\EventLoop.cc(69): error C2039: 'max' : is not a member of 'std' [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\ pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\EventLoop.cc(69): error C3861: 'max': identifier not f ound [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty.j s\build\deps\winpty\winpty-agent.vcxproj]
NamedPipe.cc
SmallRect.cc
Terminal.cc
Win32Console.cc
..\..\..\deps\winpty\agent\NamedPipe.cc(153): error C2039: 'min' : is not a membe r of 'std' [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules \pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(153): error C3861: 'min': identifier not
found [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty. js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(222): error C2039: 'min' : is not a membe r of 'std' [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules \pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(222): error C3861: 'min': identifier not
found [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty. js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(229): error C2039: 'min' : is not a membe r of 'std' [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules \pty.js\build\deps\winpty\winpty-agent.vcxproj]
..\..\..\deps\winpty\agent\NamedPipe.cc(229): error C3861: 'min': identifier not
found [C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty. js\build\deps\winpty\winpty-agent.vcxproj]
main.cc
DebugClient.cc
winpty.cc
DebugClient.cc
win_delay_load_hook.c
Creating library C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\no
de_modules\pty.js\build\Release\winpty.lib and object C:\Users\User\AppData\Roa
ming\npm\node_modules\ttystudio\node_modules\pty.js\build\Release\winpty.exp
Generating code
Finished generating code
winpty.vcxproj -> C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node
_modules\pty.js\build\Release\\winpty.dll
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\iojs\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\AppData\Roaming\npm\node_modules\ttystudio\node_modules\pty.js
gyp ERR! node -v v3.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\iojs\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "ttystudio" "-g"
npm ERR! node v3.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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! Please include the following file with any support request:
npm ERR! R:\npm-debug.log
Apparently you might need to update NAN to version 2. See nodejs/node-gyp#701 for more information on that - I don't understand it :)
Same here.
I'm facing the same issue here
@azizasm use my fixed fork: $ npm install ptyw.js (https://github.com/iiegor/ptyw.js)
@iiegor Thanks man!!. ptyw.js perfectly compiles without error in windows.