i'm trying to update a projecjt with gulp 3 to gulp 4 (node 12)
i've got this error (below the full output)
> node-gyp rebuild
bufferutil.cc
win_delay_load_hook.cc
..srcufferutil.cc(25): error C2039: 'Handle': is not a member of 'v8' [C:PROGETTIAcmeGitFrontend_Angular
ode_m
odulesufferutiluildufferutil.vcxproj]...
before update it i've done the following (but i don't know it is correct or complted)
- npm install --global --production windows-build-tools --vs2019
- from visualstudio insaller, i've installed this package (the latest version)
MSVC v142 - VS 2019 C++ Build Tools x64/x86 (v14.20)
I'm not sure about different versions of the packages, someone says to use vs2015 someone else says vs2019, does someone has a working setup or clarifing me something about it?
i can't make it working
full output
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesufferutil>if not defined npm_config_node_gyp (node "C:UsersMarioRossiAppDataRoaming
vmv12.16.1
ode_modules
pm
ode_modules
pm-lifecycle
ode-gyp-bin\....
ode_modules
ode-gypin
ode-gyp.js" rebuild ) else (node "C:UsersMarioRossiAppDataRoaming
vmv12.16.1
ode_modules
pm
ode_modules
ode-gypin
ode-gyp.js" rebuild )
Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione "/m".
bufferutil.cc
win_delay_load_hook.cc
..srcufferutil.cc(25): error C2039: 'Handle': is not a member of 'v8' [C:PROGETTIAcmeGitFrontend_Angular
ode_m
odulesufferutiluildufferutil.vcxproj]
c:usersMarioRossiappdatalocal
ode-gypcache12.16.1include
odev8-platform.h(16): note: see declaration of
'v8'
..srcufferutil.cc(25): error C2061: syntax error: identifier 'Handle' [C:PROGETTIAcmeGitFrontend_Angular
ode_m
odulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(33): error C2065: 'target': undeclared identifier [C:PROGETTIAcmeGitFrontend_Angular
ode_mod
ulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(33): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:PROG
ETTIAcmeGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(49): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(56): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(67): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(69): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(88): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(89): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(91): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:PROGETTIAnt
heaGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(92): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:PROGETTIAcmeG
itFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(93): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:PROGETTIAcmeG
itFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(114): error C2065: 'Handle': undeclared identifier [C:PROGETTIAcmeGitFrontend_Angular
ode_mo
dulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(114): error C2275: 'v8::Object': illegal use of this type as an expression [C:PROGETTIAcmeGit
Frontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
odev8.h(3496): note: see declaration of 'v8::Ob
ject'
..srcufferutil.cc(114): error C2065: 'target': undeclared identifier [C:PROGETTIAcmeGitFrontend_Angular
ode_mo
dulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(114): error C2182: 'init': illegal use of type 'void' [C:PROGETTIAcmeGitFrontend_Angular
ode
_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(115): error C2448: 'init': function-style initializer appears to be a function definition [C:PROG
ETTIAcmeGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
..srcufferutil.cc(120): warning C4312: 'type cast': conversion from 'int' to 'node::addon_register_func' of greater
size [C:PROGETTIAcmeGitFrontend_Angular
ode_modulesufferutiluildufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)MSBuild14.0inMSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:UsersMarioRossiAppDataRoaming
vmv12.16.1
ode_modules
pm
ode_modules
ode-gyplibuild.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\MarioRossi\AppData\Roaming\nvm\v12.16.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:PROGETTIAcmeGitFrontend_Angular
ode_modulesufferutil
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
> [email protected] install C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
> node-gyp rebuild
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate>if not defined npm_config_node_gyp (node "C:UsersMarioRossiAppDataRoaming
vmv12.16.1
ode_modules
pm
ode_modules
pm-lifecycle
ode-gyp-bin\....
ode_modules
ode-gypin
ode-gyp.js" rebuild ) else (node "C:UsersMarioRossiAppDataRoaming
vmv12.16.1
ode_modules
pm
ode_modules
ode-gypin
ode-gyp.js" rebuild )
Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione "/m".
validation.cc
win_delay_load_hook.cc
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_maybe_43_inl.h(88): error C2039
: 'ForceSet': is not a member of 'v8::Object' (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFront
end_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
odev8.h(3496): note: see declaration of 'v8::Ob
ject' (compiling source file ..srcvalidation.cc)
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_converters_43_inl.h(18): warnin
g C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..srcvalidation.cc) [C:PROGETTIAnth
eaGitFrontend_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
odev8.h(2665): note: see declaration of 'v8::Va
lue::ToBoolean' (compiling source file ..srcvalidation.cc)
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_converters_43_inl.h(34): warnin
g C4996: 'v8::Value::BooleanValue': was declared deprecated (compiling source file ..srcvalidation.cc) [C:PROGETTIA
ntheaGitFrontend_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
odev8.h(2703): note: see declaration of 'v8::Va
lue::BooleanValue' (compiling source file ..srcvalidation.cc)
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_implementation_12_inl.h(109): e
rror C2664: 'v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>,v8::FunctionCallback,v8::Local<v8::V
alue>,int,v8::ConstructorBehavior,v8::SideEffectType)': cannot convert argument 1 from 'v8::Isolate *' to 'v8::Local<v8
::Context>' (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-val
idateuildvalidation.vcxproj]
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_implementation_12_inl.h(109):
note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source
file ..srcvalidation.cc)
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_implementation_12_inl.h(345): e
rror C2660: 'v8::StringObject::New': function does not take 1 arguments (compiling source file ..srcvalidation.cc) [C
:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_implementation_12_inl.h(345): e
rror C2228: left of '.As' must have class/struct/union (compiling source file ..srcvalidation.cc) [C:PROGETTIAcme
GitFrontend_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
c:progettiAcmegitfrontend_angular
ode_modulesutf-8-validate
ode_modules
an
an_implementation_12_inl.h(345): e
rror C2059: syntax error: ')' (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angular
ode
_modulesutf-8-validateuildvalidation.vcxproj]
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(816): warning C4996: 'node::M
akeCallback': was declared deprecated (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angu
lar
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
ode
ode.h(179): note: see declaration of 'node:
:MakeCallback' (compiling source file ..srcvalidation.cc)
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(830): warning C4996: 'node::M
akeCallback': was declared deprecated (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angu
lar
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
ode
ode.h(172): note: see declaration of 'node:
:MakeCallback' (compiling source file ..srcvalidation.cc)
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(844): warning C4996: 'node::M
akeCallback': was declared deprecated (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angu
lar
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:UsersMarioRossiAppDataLocal
ode-gypCache12.16.1include
ode
ode.h(165): note: see declaration of 'node:
:MakeCallback' (compiling source file ..srcvalidation.cc)
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(890): error C2661: 'v8::Value
::ToString': no overloaded function takes 0 arguments (compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeG
itFrontend_Angular
ode_modulesutf-8-validateuildvalidation.vcxproj]
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(900): error C2664: 'int v8::S
tring::WriteUtf8(v8::Isolate *,char *,int,int *,int) const': cannot convert argument 1 from 'char *' to 'v8::Isolate *'
(compiling source file ..srcvalidation.cc) [C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validateuild
validation.vcxproj]
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_modules
an
an.h(900): note: Types pointed t
o are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast (compiling source file ..
srcvalidation.cc)
C:PROGETTIAcmeGitFrontend_Angular
ode_modulesutf-8-validate
ode_mo
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…