question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After trying to build, following the instructions exactly it fails.

root@Blue-Analyph:/mnt/c/Users/[removed]/Documents/winner/wetty# npm install

pty.js@0.3.1 install /mnt/c/Users/[removed]/Documents/winner/wetty/node_modules/pty.js node-gyp rebuild

make: Entering directory ‘/mnt/c/Users/[removed]/Documents/winner/wetty/node_modules/pty.js/build’ CXX(target) Release/obj.target/pty/src/unix/pty.o In file included from …/…/nan/nan.h:190:0, from …/src/unix/pty.cc:20: …/…/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’: …/…/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ return obj->ForceSet(GetCurrentContext(), key, value, attribs); ^ In file included from …/src/unix/pty.cc:20:0: …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’: …/…/nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from …/…/nan/nan.h:47:0, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^ /home/[removed]/.node-gyp/10.1.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^ In file included from …/src/unix/pty.cc:20:0: …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’: …/…/nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from …/…/nan/nan.h:47:0, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/node.h:165:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^ /home/[removed]/.node-gyp/10.1.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^ In file included from …/src/unix/pty.cc:20:0: …/…/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value)’: …/…/nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from …/…/nan/nan.h:47:0, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/node.h:158:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^ /home/[removed]/.node-gyp/10.1.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^ In file included from …/src/unix/pty.cc:20:0: …/…/nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate, v8::Localv8::Object, int, v8::Localv8::Value) const’: …/…/nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(…, async_context) [-Wdeprecated-declarations] )); ^ In file included from …/…/nan/nan.h:47:0, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^ /home/[removed]/.node-gyp/10.1.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^ …/src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/unix/pty.cc:164:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value file(info[0]->ToString()); ^ In file included from /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:26:0, from /home/[removed]/.node-gyp/10.1.0/include/node/node.h:63, from …/…/nan/nan.h:47, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/[removed]/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^ …/src/unix/pty.cc:175:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value arg(argv_->Get(Nan::New<Integer>(i))->ToString()); ^ In file included from /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:26:0, from /home/[removed]/.node-gyp/10.1.0/include/node/node.h:63, from …/…/nan/nan.h:47, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/[removed]/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^ …/src/unix/pty.cc:186:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value pair(env_->Get(Nan::New<Integer>(i))->ToString()); ^ In file included from /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:26:0, from /home/[removed]/.node-gyp/10.1.0/include/node/node.h:63, from …/…/nan/nan.h:47, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/[removed]/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^ …/src/unix/pty.cc:191:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value cwd_(info[3]->ToString()); ^ In file included from /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:26:0, from /home/[removed]/.node-gyp/10.1.0/include/node/node.h:63, from …/…/nan/nan.h:47, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/[removed]/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^ …/src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/unix/pty.cc:371:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value tty_(info[1]->ToString()); ^ In file included from /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:26:0, from /home/[removed]/.node-gyp/10.1.0/include/node/node.h:63, from …/…/nan/nan.h:47, from …/src/unix/pty.cc:20: /home/[removed]/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/[removed]/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^ …/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); ^ pty.target.mk:95: recipe for target ‘Release/obj.target/pty/src/unix/pty.o’ failed make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1 make: Leaving directory ‘/mnt/c/Users/[removed]/Documents/winner/wetty/node_modules/pty.js/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12) gyp ERR! System Linux 4.4.0-43-Microsoft gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /mnt/c/Users/[removed]/Documents/winner/wetty/node_modules/pty.js gyp ERR! node -v v10.1.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pty.js@0.3.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pty.js@0.3.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/[removed]/.npm/_logs/2018-05-24T02_42_23_981Z-debug.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Apollon77commented, Jul 9, 2018

It seems to me that pty.js is no longer really maintained … but node-pty seems to be an actively maninatned fork … maybe just switch to node-pty?!

1reaction
mdhellercommented, Aug 7, 2018

I will push the changes to my fork

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error pty.js install? - Stack Overflow
I read post "Errors installing pty.js (node) on OS X" but he did not help me to solve the problem. ... I believe...
Read more >
Issues · chjj/pty.js - GitHub
Contribute to chjj/pty.js development by creating an account on GitHub. ... in Sqlplus, backspace and delete keys are not working while SSH.
Read more >
node-pty - npm
JS. Latest version: 0.10.1, last published: 2 years ago. Start using node-pty in your project by running `npm i node-pty`.
Read more >
Encoding - Xterm.js
Integration issues / PTY bridge. xterm.js is heavily tested against node-pty as it is shipped mostly with Node.js based solutions. With node-pty the ......
Read more >
node-pty-prebuilt-multiarch | Yarn - Package Manager
This project is a parallel fork of node-pty providing prebuilt packages for certain Node.js and ... #116; Fix a theoretical issue with input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found