#node.js #npm #visual-studio-2017 #loopbackjs #strongloop
#node.js #npm #visual-studio-2017 #loopbackjs #strongloop
Вопрос:
Я только начинаю изучать цикл и то, как он работает, но получаю ошибку при установке strongloop npm install -g strongloop
gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0BinMSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibbuild.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\Admin\AppData\Roaming\npm\node_modules\strongloop\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\Admin\AppData\Roaming\npm\node_modules\strongloop\node_modules\sqlite3\lib\binding\node-v72-win32-x64"
gyp ERR! cwd C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Filesnodejsnode.exe C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3libbindingnode-v72-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3libbindingnode-v72-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3node_modulesnode-pre-gyplibutilcompile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Windows_NT 10.0.19041
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admin\AppData\Roaming\npm\node_modules\strongloop\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3
node-pre-gyp ERR! node -v v12.18.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'C:Program Filesnodejsnode.exe C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --module=C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3libbindingnode-v72-win32-x64node_sqlite3.node --module_name=node_sqlite3 --module_path=C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulessqlite3libbindingnode-v72-win32-x64' (1)
> strong-agent@2.1.2 install C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesstrong-agent
> node-gyp rebuild || exit 0
C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesstrong-agent>if not defined npm_config_node_gyp (node "C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin\....node_modulesnode-gypbinnode-gyp.js" rebuild ) else (node "C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" rebuild )
Warning: Missing input files:
C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesstrong-agentbuild..srcfeatures.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
strong-agent.cc
win_delay_load_hook.cc
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesstrong-agentsrccompat.h(20): fatal error C108
3: Cannot open include file: 'v8-debug.h': No such file or directory (compiling source file ..srcstrong-agent.cc) [C:
UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesstrong-agentbuildstrong-agent.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0BinMSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibbuild.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesstrong-agent
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
> ws@0.4.32 install C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesnode-inspectornode_modulesws
c:usersadminappdatalocalnode-gypcache12.18.3includenodev8.h(3557): note: see declaration of 'v8::Object::Ge
t' (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesnannan_object_wrap.h(24): error C2039: 'IsNear
Death': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:UsersAdminAppDataRoa
mingnpmnode_modulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
with
[
T=v8::Object
] (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesnannan.h(1548): note: see declaration of 'Na
n::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'
with
[
T=v8::Object
] (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesnannan_object_wrap.h(67): warning C4996: 'v8::
PersistentBase<v8::Object>::MarkIndependent': was declared deprecated (compiling source file ..srcvalidation.cc) [C:
UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
c:usersadminappdatalocalnode-gypcache12.18.3includenodev8.h(566): note: see declaration of 'v8::PersistentB
ase<v8::Object>::MarkIndependent' (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesnannan_object_wrap.h(124): error C2039: 'IsNea
rDeath': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:UsersAdminAppDataRo
amingnpmnode_modulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
with
[
T=v8::Object
] (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesnannan.h(1548): note: see declaration of 'Na
n::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'
with
[
T=v8::Object
] (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(106): error C2
039: 'Handle': is not a member of 'v8' [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-v
alidatebuildvalidation.vcxproj]
c:usersadminappdatalocalnode-gypcache12.18.3includenodev8-platform.h(16): note: see declaration of 'v8'
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(106): error C2
061: syntax error: identifier 'Handle' [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-v
alidatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(112): error C2
065: 'target': undeclared identifier [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-val
idatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(112): error C2
660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:UsersAdminAppDataRoamingnpmnode_m
odulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
c:usersadminappdatalocalnode-gypcache12.18.3includenodev8.h(6126): note: see declaration of 'v8::FunctionTe
mplate::GetFunction' (compiling source file ..srcvalidation.cc)
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(131): error C2
661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:UsersAdminAppDataRoamingnpmnode_moduless
trongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(140): error C2
065: 'Handle': undeclared identifier [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-val
idatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(140): error C2
275: 'v8::Object': illegal use of this type as an expression [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloo
pnode_modulesutf-8-validatebuildvalidation.vcxproj]
c:usersadminappdatalocalnode-gypcache12.18.3includenodev8.h(3496): note: see declaration of 'v8::Object'
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(140): error C2
065: 'target': undeclared identifier [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-val
idatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(140): error C2
182: 'init': illegal use of type 'void' [C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-
validatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(141): error C2
448: 'init': function-style initializer appears to be a function definition [C:UsersAdminAppDataRoamingnpmnode_mo
dulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
c:usersadminappdataroamingnpmnode_modulesstrongloopnode_modulesutf-8-validatesrcvalidation.cc(146): warning
C4312: 'type cast': conversion from 'int' to 'node::addon_register_func' of greater size [C:UsersAdminAppDataRoamin
gnpmnode_modulesstrongloopnode_modulesutf-8-validatebuildvalidation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0BinMSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:UsersAdminAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibbuild.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:UsersAdminAppDataRoamingnpmnode_modulesstrongloopnode_modulesutf-8-validate
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
также я пытался npm install --global --production windows-build-tools
, но столкнулся с той же ошибкой
npm cache clean --force
npm install --global --production windows-build-tools --vs2017
npm install -g node-gyp
все эти команды также не могут решить эту проблему
нужна помощь для решения этой проблемы
также я установил зависимости c из Visual Studio Build Tools 2017
15.9.30 у меня ничего не работает