Skip to content
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

Installation fails (max is not a template of std among others) #131

Open
sbrl opened this issue Sep 8, 2015 · 4 comments
Open

Installation fails (max is not a template of std among others) #131

sbrl opened this issue Sep 8, 2015 · 4 comments

Comments

@sbrl
Copy link

sbrl commented Sep 8, 2015

I tried to install ttystudio, but I got this error message:

R:\>npm install ttystudio -g
-
> pty.js@0.3.0 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! pty.js@0.3.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.3.0 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 :)

@iiegor
Copy link

iiegor commented Sep 9, 2015

Same here.

@azizasm
Copy link

azizasm commented Nov 16, 2015

I'm facing the same issue here

@iiegor
Copy link

iiegor commented Nov 16, 2015

@azizasm use my fixed fork: $ npm install ptyw.js (https://github.com/iiegor/ptyw.js)

@azizasm
Copy link

azizasm commented Nov 17, 2015

@iiegor Thanks man!!. ptyw.js perfectly compiles without error in windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants