opensumi / ide-startup

Quick starter for OpenSumi Web
https://opensumi.com
MIT License
199 stars 70 forks source link

run yarn fail #97

Open showonne opened 7 months ago

showonne commented 7 months ago

error output:

error /Users/showonne/Desktop/ide-startup/node_modules/node-pty: Command failed.
Exit code: 1
Command: node scripts/install.js

# some info...

  CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../../nan/nan.h:178:
../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
typedef v8::Local<v8::AccessorSignature> Sig;
                  ~~~~^
In file included from ../src/unix/pty.cc:20:
../../nan/nan.h:2544:8: error: no matching member function for call to 'SetAccessor'
  tpl->SetAccessor(
  ~~~~~^~~~~~~~~~~
/Users/showonne/Library/Caches/node-gyp/20.11.0/include/node/v8-template.h:816:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'SideEffectType' for 7th argument
  void SetAccessor(
       ^
/Users/showonne/Library/Caches/node-gyp/20.11.0/include/node/v8-template.h:809:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &)') to 'AccessorGetterCallback' (aka 'void (*)(Local<String>, const PropertyCallbackInfo<Value> &)') for 2nd argument
  void SetAccessor(
       ^
2 errors generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Darwin 23.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/showonne/Desktop/ide-startup/node_modules/node-pty

enviroment:

OS: MacOS 14.0 M1
node-gyp@10.1.0
node@20.11.0
Python 3.12.2
lucifer1004 commented 6 months ago

This package seems to be incompatible with Node.JS 20. Node.JS 18 would not cause this error.