安装原生节点模块时出错电子壁纸

时间:2021-05-21 23:15:09

标签: c++ node.js node-gyp

在尝试安装似乎与某些 C++ 错误有关的模块“电子壁纸”时,我收到以下错误。

任何人都可以暗示这是否与正在使用的工具版本有关,即 node-gyp、build-tools、python 或模块本身已过时的实际问题?

path\my-project\node_modules\electron-wallpaper\src\bindings.cc(40,105): error C2664: 'v8::Local<v8::Value> v8::Exception::TypeError(v8::Local<v8::String>)': cannot convert argument 1 from 'v8::MaybeLocal<v8::String>' to '
v8::Local<v8::String>' [path\my-project\node_modules\electron-wallpaper\build\electron-wallpaper.vcxproj]
path\my-project\node_modules\electron-wallpaper\src\bindings.cc(40,71): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called [C:\code\personal\js\downlo
ader\node_modules\electron-wallpaper\build\electron-wallpaper.vcxproj]
C:\Users\joeyj\AppData\Local\node-gyp\Cache\14.15.0\include\node\v8.h(7185,23): message : see declaration of 'v8::Exception::TypeError' (compiling source file ..\src\bindings.cc) [path\my-project\node_modules\electron-wall
paper\build\electron-wallpaper.vcxproj]
path\my-project\node_modules\electron-wallpaper\src\bindings.cc(45,115): error C2440: 'initializing': cannot convert from 'v8::MaybeLocal<v8::String>' to 'v8::Local<v8::String>' [path\my-project\node_modules
\electron-wallpaper\build\electron-wallpaper.vcxproj]
path\my-project\node_modules\electron-wallpaper\src\bindings.cc(45,115): message : No constructor could take the source type, or constructor overload resolution was ambiguous [path\my-project\node_modules\el
ectron-wallpaper\build\electron-wallpaper.vcxproj]
path\my-project\node_modules\electron-wallpaper\src\bindings.cc(50,94): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [path\my-project\node_modules\electron-wallpaper\build\electron-
wallpaper.vcxproj]
C:\Users\joeyj\AppData\Local\node-gyp\Cache\14.15.0\include\node\v8.h(2822,44): message : see declaration of 'v8::Value::ToObject' (compiling source file ..\src\bindings.cc) [path\my-project\node_modules\electron-wallpaper
\build\electron-wallpaper.vcxproj]

0 个答案:

没有答案