pty.js icon indicating copy to clipboard operation
pty.js copied to clipboard

Unable to build: ‘class v8::Object’ has no member named ‘ForceSet’

Open 2m opened this issue 6 years ago • 13 comments

../../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:
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/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.16.8-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/martynas/node_modules/pty.js
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

2m avatar May 16 '18 10:05 2m

Found this, maybe related? https://github.com/nodejs/node/issues/20770

ghost avatar May 16 '18 19:05 ghost

i switched my node version to 8 and it installed correctly

ghost avatar May 16 '18 20:05 ghost

@chjj fix please!

LoganDark avatar Jun 15 '18 00:06 LoganDark

Doesn't work on 11.6.0

keivanh avatar Jan 09 '19 08:01 keivanh

@keivanh we know

LoganDark avatar Jan 09 '19 08:01 LoganDark

Any workaround meanwhile? What is max Node version support this?

keivanh avatar Jan 09 '19 08:01 keivanh

@keivanh node 8, the long term support version, see https://github.com/chjj/pty.js/issues/195#issuecomment-389651039

LoganDark avatar Jan 09 '19 08:01 LoganDark

Doesn't work on node v11.12.0

RossComputerGuy avatar Mar 22 '19 20:03 RossComputerGuy

I have this problem on node v10.15.0

gustawdaniel avatar Jul 03 '19 14:07 gustawdaniel

node 8 is supported till 2019-12-31, what should we do after that?

midnightcodr avatar Jul 29 '19 19:07 midnightcodr

afaik this project is abandoned.

https://github.com/Microsoft/node-pty is fork that's maintained by msft and used in vscode.

It was a perfect drop-in replacement in my project. g'luck! 🍀

paulirish avatar Oct 11 '19 17:10 paulirish

You could get this to work on a node v10.x with @paulirish answer.

liswin avatar Sep 15 '20 07:09 liswin

This is because of outdated version of nan. However, this project won't work on later versions of node anyway.

LordZardeck avatar Dec 18 '20 15:12 LordZardeck