pty.js problem
See original GitHub issueAfter 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:
- Created 5 years ago
- Comments:11 (1 by maintainers)
Top GitHub Comments
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?!
I will push the changes to my fork