Comments (13)
Can you do:
cd /home/vagrant
npm install pty.js
can you see if it installs pty.js in /home/vagrant/node_modules/pty.js?
from wetty.
Yup. That seemed to work out.
vagrant@vagrant-ubuntu-trusty-64 ~ β u:1 j:0 (17:48:45 06.14)
#158 β―β―β― npm install pty.js
\
> [email protected] install /home/vagrant/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/home/vagrant/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function βvoid PtyFork(const v8::FunctionCallbackInfo<v8::Value>&)β:
../src/unix/pty.cc:185:34: warning: ignoring return value of βint chdir(const char*)β, declared with attribute warn_unused_result [-Wunused-result]
if (strlen(cwd)) chdir(cwd);
^
SOLINK_MODULE(target) Release/obj.target/pty.node
SOLINK_MODULE(target) Release/obj.target/pty.node: Finished
COPY Release/pty.node
make: Leaving directory `/home/vagrant/node_modules/pty.js/build'
[email protected] node_modules/pty.js
βββ [email protected]
βββ [email protected]
vagrant@vagrant-ubuntu-trusty-64 ~ β u:1 j:0 (17:49:04 06.14)
#159 β―β―β― tree node_modules/
node_modules/
βββ pty.js
βββ binding.gyp
βββ build
βΒ Β βββ binding.Makefile
βΒ Β βββ config.gypi
βΒ Β βββ Makefile
βΒ Β βββ pty.target.mk
βΒ Β βββ Release
βΒ Β βββ linker.lock
βΒ Β βββ obj.target
βΒ Β βΒ Β βββ pty
βΒ Β βΒ Β βΒ Β βββ src
βΒ Β βΒ Β βΒ Β βββ unix
βΒ Β βΒ Β βΒ Β βββ pty.o
βΒ Β βΒ Β βββ pty.node
βΒ Β βββ pty.node
βββ deps
βΒ Β βββ winpty
βΒ Β βββ agent
βΒ Β βΒ Β βββ AgentAssert.cc
βΒ Β βΒ Β βββ AgentAssert.h
βΒ Β βΒ Β βββ Agent.cc
βΒ Β βΒ Β βββ Agent.h
βΒ Β βΒ Β βββ ConsoleInput.cc
βΒ Β βΒ Β βββ ConsoleInput.h
βΒ Β βΒ Β βββ Coord.cc
βΒ Β βΒ Β βββ Coord.h
βΒ Β βΒ Β βββ DsrSender.h
βΒ Β βΒ Β βββ EventLoop.cc
βΒ Β βΒ Β βββ EventLoop.h
βΒ Β βΒ Β βββ main.cc
βΒ Β βΒ Β βββ Makefile
βΒ Β βΒ Β βββ NamedPipe.cc
βΒ Β βΒ Β βββ NamedPipe.h
βΒ Β βΒ Β βββ SmallRect.cc
βΒ Β βΒ Β βββ SmallRect.h
βΒ Β βΒ Β βββ Terminal.cc
βΒ Β βΒ Β βββ Terminal.h
βΒ Β βΒ Β βββ Win32Console.cc
βΒ Β βΒ Β βββ Win32Console.h
βΒ Β βββ config.mk
βΒ Β βββ configure
βΒ Β βββ include
βΒ Β βΒ Β βββ winpty.h
βΒ Β βββ libwinpty
βΒ Β βΒ Β βββ Makefile
βΒ Β βΒ Β βββ winpty.cc
βΒ Β βββ LICENSE
βΒ Β βββ Makefile
βΒ Β βββ misc
βΒ Β βΒ Β βββ build_win32.sh
βΒ Β βΒ Β βββ DebugClient.py
βΒ Β βΒ Β βββ DebugServer.py
βΒ Β βΒ Β βββ FormatChar.h
βΒ Β βΒ Β βββ SelectAllTest.cc
βΒ Β βΒ Β βββ ShowArgv.cc
βΒ Β βΒ Β βββ ShowConsoleInput.cc
βΒ Β βΒ Β βββ Spew.py
βΒ Β βΒ Β βββ UnixEcho.cc
βΒ Β βΒ Β βββ VkEscapeTest.cc
βΒ Β βΒ Β βββ Win32Echo1.cc
βΒ Β βΒ Β βββ Win32Echo2.cc
βΒ Β βΒ Β βββ Win32Test1.cc
βΒ Β βΒ Β βββ Win32Test2.cc
βΒ Β βΒ Β βββ Win32Test3.cc
βΒ Β βΒ Β βββ Win32Write1.cc
βΒ Β βββ Notes.txt
βΒ Β βββ README.rst
βΒ Β βββ shared
βΒ Β βΒ Β βββ AgentMsg.h
βΒ Β βΒ Β βββ Buffer.h
βΒ Β βΒ Β βββ c99_snprintf.h
βΒ Β βΒ Β βββ DebugClient.cc
βΒ Β βΒ Β βββ DebugClient.h
βΒ Β βββ unix-adapter
βΒ Β βΒ Β βββ main.cc
βΒ Β βΒ Β βββ Makefile
βΒ Β βΒ Β βββ Shared.cc
βΒ Β βββ winpty.gyp
βββ index.js
βββ lib
βΒ Β βββ pty.js
βΒ Β βββ pty_win.js
βββ LICENSE
βββ Makefile
βββ node_modules
βΒ Β βββ extend
βΒ Β βΒ Β βββ index.js
βΒ Β βΒ Β βββ package.json
βΒ Β βΒ Β βββ README.md
βΒ Β βββ nan
βΒ Β βββ appveyor.yml
βΒ Β βββ CHANGELOG.md
βΒ Β βββ include_dirs.js
βΒ Β βββ LICENSE.md
βΒ Β βββ nan.h
βΒ Β βββ nan_implementation_12_inl.h
βΒ Β βββ nan_implementation_pre_12_inl.h
βΒ Β βββ nan_new.h
βΒ Β βββ nan_string_bytes.h
βΒ Β βββ package.json
βββ package.json
βββ README.md
βββ src
βΒ Β βββ unix
βΒ Β βΒ Β βββ pty.cc
βΒ Β βββ win
βΒ Β βββ pty.cc
βββ wscript
from wetty.
weird, can you check if any of the suggestions here nodejs/node-gyp#363 fixes this?
from wetty.
Tried just about everything mentioned...
- Tried building node on a fresh system
- Tried downgrading Python 2.6 and then building node
- Tried installing NVM/node on a fresh system
Same things happens each time. You can see the system I'm using by downloading this gist.
https://gist.github.com/howardroark/25550e799297fafb3b94
It just downloads the official vagrant image from ubuntu and installs nvm on it. The error is produceable there. No pressure at all if you don't have the time.
from wetty.
For some reason things fail with node 0.12 I was able to get it working with 0.10.31 here
http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
Can you check with this version? (Also do a 'npm install -g node-gyp' )
from wetty.
I was able to get it installed that way :) Though I had to install each dependency on it's own after the install before I could run app.js
.
from wetty.
So yeah... only works with node 0.10.x. I tried io.js 1 & 2 as well. Very odd. You know though... I wonder if Ubuntu precise is the better release to work with anyway. Considering it is likely to be getting more bug fixes due to it's wider adoption.
from wetty.
Happens on Ubuntu 12.04 as well. Must be something to do with Node+Python+Ubuntu
from wetty.
2c65241 will fix this issue but the side effect is it will cause #4 (because of chjj/pty.js#58) but I think it's better to live with a few zombie processes than fail on node 0.12
from wetty.
@howardroark latest code should work fine regardless of the ubuntu/node version, can you verify and close this issue? (you will need to git clone this repo and not do 'npm install wetty' from the NPM repo)
from wetty.
Yup, that worked! You can push the update to NPM π
Also... Is there any way to avoid needing to verify the host and enter a password?
from wetty.
you can setup passwordless ssh using pub/pvt keys. (as wetty uses ssh to connect)
from wetty.
@krishnasrinivas thanks... Is this data supplied at the point where app.js
is initiated?
from wetty.
Related Issues (20)
- --ssh-pass=<password> won't make effect HOT 5
- Refused to display in a frame because it set 'X-Frame-Options' to 'deny' HOT 1
- send data from browser instance to wetty iframe
- Will Docker images be updated? HOT 4
- fit to page not working for me HOT 7
- Pass HTTP headers to the command as env vars HOT 1
- Line Display in Wetty on a Large Monitor
- Move away from yarn
- [Question] Why is wetty prompting for my username at login? HOT 1
- Docs suggest installing nodejs 14 instead of a maintained version
- What environment variables are available for Docker containers? HOT 1
- Trying to expose the terminal of a Raspberry Pi HOT 3
- Move away from snowpack? HOT 1
- It can not work at windows.
- (On the same host) being able to autologin even if SSH is configured with PasswordAuthentication no
- Ability to kill wetty service when a user has exited or when the window is inactive for 5 mins
- ssh in legacy server HOT 1
- @fortawesome and lodash are not found HOT 6
- Black screen on fresh install HOT 11
- Ability to enter commands/text into wetty iframe.
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 wetty.