Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Node v20 #55

Open
travispaul opened this issue May 6, 2024 · 0 comments · May be fixed by #56
Open

Support Node v20 #55

travispaul opened this issue May 6, 2024 · 0 comments · May be fixed by #56

Comments

@travispaul
Copy link

Installing with the latest Node.js LTS (20.12.2) appears to fail. Trying again with the older LTS (18.20.2) succeeds.

npm ERR! code 1
npm ERR! path C:\npm\prefix\node_modules\os-service
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
npm ERR!   service.cc
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan_callbacks.h(55,23): error C2039: 'AccessorSignature': is not a member of 'v8' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8.h(71): message : see declaration of 'v8' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan_callbacks.h(55,40): error C2065: 'AccessorSignature': undeclared identifier [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan_callbacks.h(55,13): error C2923: 'v8::Local': 'AccessorSignature' is not a valid template type argument for parameter 'T' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan_callbacks.h(55): message : see declaration of 'AccessorSignature' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan_callbacks.h(55,42): error C2955: 'v8::Local': use of class template requires template argument list [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,14): error C2955: 'v8::Local': use of class template requires template argument list [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,34): error C2641: cannot deduce template arguments for 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,36): error C2780: 'v8::Local<T> v8::Local(T *)': expects 1 arguments - 0 provided [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(331): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,36): error C2780: 'v8::Local<T> v8::Local(v8::Local<S>)': expects 1 arguments - 0 provided [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(195): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,34): error C2783: 'v8::Local<T> v8::Local(void)': could not deduce template argument for 'T' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(192): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2516,36): error C2780: 'v8::Local<T> v8::Local(v8::Local<T>)': expects 1 arguments - 0 provided [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2542,6): error C2664: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)': cannot convert argument 2 from 'Nan::imp::NativeGetter' to 'v8::AccessorGetterCallback' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\npm\prefix\node_modules\os-service\node_modules\nan\nan.h(2544,7): message : This conversion requires a reinterpret_cast, a C-style cast or function-style cast [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
npm ERR! C:\Users\runneradmin\AppData\Local\node-gyp\Cache\20.12.2\include\node\v8-template.h(809,8): message : see declaration of 'v8::ObjectTemplate::SetAccessor' [C:\npm\prefix\node_modules\os-service\build\service.vcxproj]
travispaul added a commit to travispaul/node-os-service that referenced this issue Aug 1, 2024
travispaul added a commit to travispaul/node-os-service that referenced this issue Aug 1, 2024
@travispaul travispaul linked a pull request Aug 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant