chjj / tty.js

A terminal for your browser, using node/express/socket.io
MIT License
4.19k stars 480 forks source link

cannot build tty.js : #154

Open jmls opened 8 years ago

jmls commented 8 years ago

when trying to install tty.js, I get a compile error and it fails to build.

this is the error in the console:

npm install tty.js

> pty.js@0.3.0 install /var/myApp/node_modules/tty.js/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/var/myApp/node_modules/tty.js/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)':
../src/unix/pty.cc:222:34: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
       if (strlen(cwd)) chdir(cwd);
                                  ^
roccomuso commented 8 years ago

are you on linux?