Comments (14)
In Linux it's compiling perfectly, but I think it's using different libraries for windows(which are not compiling because of some std error)
I'm using windows 7
npm -v: 2.11.3
node -v: v0.12.7
Thanks
from pty.js.
Same problem here, while trying to use https://github.com/artoale/brackets-terminal
- Windows 8.1
- Visual Studio 2013 Ultimate
npm install -g tty.js
run from Cygwin (Git Bash)
from pty.js.
The important error messages (missing STL symbol) should enable fixing the problem (use #define MIN(a,b)
and #define MAX(a,b)
) are):
..\..\..\deps\winpty\agent\EventLoop.cc(69): error C2039: 'max' : is not a member of 'std' [C:\Users\kowalskif\AppData\Roaming\npm\
node_modules\tty.js\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
and:
..\..\..\deps\winpty\agent\NamedPipe.cc(153): error C2039: 'min' : is not a member of 'std' [C:\Users\kowalskif\AppData\Roaming\npm
\node_modules\tty.js\node_modules\pty.js\build\deps\winpty\winpty-agent.vcxproj]
from pty.js.
BTW, adding #include <algorithm>
should define those missing symbols....
from pty.js.
including it where?
I'm using npm install -g tty.js so I don't have a script to add #include to.
any details?
from pty.js.
@thatkookooguy did you find any solution? I am stuck at the same spot.
from pty.js.
@userunknow (talking about tty.js which uses pty.js) Eventually, I installed tty.js as non-global in my home directory (Linux) with sudo npm install tty.js
, and created an alias in my .bashrc file:
alias ttyjs='node ~/node_modules/tty.js/bin/tty.js'
.
from pty.js.
@thatkookooguy what if it is windows, how can we do that in windows?
from pty.js.
@DroidUnknown You can add the local tty.js to the windows PATH variable (Just like node and npm are added automatically).
Here's how:
- Right click on my computer (either on desktop or start menu). Select
Advanced system settings
on the sidebar - On the new pop-up window, click on the
Advanced
tab, and then, onEnvironment Variables...
- Under
System variables
, look for thepath
variable. - Edit it. at the very end, add another
;
(that's the seperator), and add the absolute path to<tty.js installed folder>\bin
didn't try it yet. but I'm pretty sure that will let you use it like node tty.js
let me know if there are any problems
from pty.js.
@thatkookooguy issue is i am unable to properly install tty.js. I am stuck at
D:\Office Work Space\Node>npm install -g pty.js --msvs_version=2013
/
[email protected] install C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js
node-gyp rebuild
C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js>if not defined npm_conf
g_node_gyp (node "C:\Program Files\nodejs\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 memb
er of 'std' [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\deps
\winpty\winpty-agent.vcxproj]
......\deps\winpty\agent\EventLoop.cc(69): error C3861: 'max': identifier not
found [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\deps\winp
ty\winpty-agent.vcxproj]
NamedPipe.cc
SmallRect.cc
Terminal.cc
Win32Console.cc
......\deps\winpty\agent\NamedPipe.cc(153): error C2039: 'min' : is not a mem
ber of 'std' [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\dep
s\winpty\winpty-agent.vcxproj]
......\deps\winpty\agent\NamedPipe.cc(153): error C3861: 'min': identifier no
t found [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\deps\win
pty\winpty-agent.vcxproj]
......\deps\winpty\agent\NamedPipe.cc(222): error C2039: 'min' : is not a mem
ber of 'std' [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\dep
s\winpty\winpty-agent.vcxproj]
......\deps\winpty\agent\NamedPipe.cc(222): error C3861: 'min': identifier no
t found [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\deps\win
pty\winpty-agent.vcxproj]
......\deps\winpty\agent\NamedPipe.cc(229): error C2039: 'min' : is not a mem
ber of 'std' [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\dep
s\winpty\winpty-agent.vcxproj]
......\deps\winpty\agent\NamedPipe.cc(229): error C3861: 'min': identifier no
t found [C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\build\deps\win
pty\winpty-agent.vcxproj]
main.cc
DebugClient.cc
winpty.cc
DebugClient.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc (......\deps\winpty\libwinpty\winpty.cc) [C:\Users\Muneeb\AppDa
ta\Roaming\npm\node_modules\pty.js\build\deps\winpty\winpty.vcxproj]
Creating library C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\b
uild\Release\winpty.lib and object C:\Users\Muneeb\AppData\Roaming\npm\node_m
odules\pty.js\build\Release\winpty.exp
Generating code
Finished generating code
winpty.vcxproj -> C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js\bui
ld\Release\winpty.dll
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
fai
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:107
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_mod
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Muneeb\AppData\Roaming\npm\node_modules\pty.js
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
\node_modules\npm\bin\npm-cli.js" "install" "-g" "pty.js" "--msvs_version=2
13"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
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! D:\Office Work Space\Node\npm-debug.log
from pty.js.
UP. Any fixes on this ?
from pty.js.
No I am afraid not yet.
from pty.js.
When we can except to find the solution ? It's seems it should be just a very simple bug ?
from pty.js.
Might be something to do with versions?
All of you are experiencing this on Windows? Or this is cross platform?
What's the version number of your node and npm?
(you can check by running npm -v
& node -v
)
please right that here (and which OS you're running)
I'm not sure how much I can help but I'll try
from pty.js.
Related Issues (20)
- In the demo app how would you detect a CTRL + D or the death of the process?
- BUGs on ubuntu16.10 when I install package in atom HOT 2
- Microsoft seems to have work on pty.js HOT 1
- How to enable ipc communication : enable process.send() & child.on('message') ?
- Get input data on output listener method HOT 4
- gyp: deps\winpty\winpty.gyp not found (cwd: C:\Program Files\nodejs\node_modules\pty.js) HOT 4
- why is stderr undefined?
- pty.resize - ioctl failed. HOT 1
- Terminal.end does not kill the process
- replace node-waf bindings to node-gyp HOT 3
- bug HOT 6
- apm bug HOT 1
- in Sqlplus, backspace and delete keys are not working while SSH
- Doesnt work on 10.0.0 HOT 4
- Unable to build: ‘class v8::Object’ has no member named ‘ForceSet’ HOT 13
- What are the possible values for the `name` option ?
- node-gyp rebuild error.os:ubuntu16.04
- Cannot create new project and i cannot my npm.version node 12,npm 3.
- .
- active forks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pty.js.