i am trying to install all dependencies using npm install
command, but while installing it i am getting error like below :
ling source file ..srchreaded_callback_invokation.cc)
c:applatestapplatest
ode_modules
an
an.h(1478): warning C4996: 'node::MakeCallback': was declared deprecated (comp
iling source file ..srchreaded_callback_invokation.cc) [C:appLatestappLatest
ode_modulesvoicemeeter
ode_modules
ffiuildffi_bindings.vcxproj]
c:usersalliancetek.node-gyp10.15.0include
ode
ode.h(176): note: see declaration of 'node::MakeCallback' (compi
ling source file ..srchreaded_callback_invokation.cc)
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:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibuild.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:appLatestappLatest
ode_modulesvoicemeeter
ode_modulesffi
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@1.3.1 (node_modules7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.3.1: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@1.0.1 (node_modules7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ffi@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ffi@2.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersalliancetekAppDataRoaming
pm-cache\_logs2019-02-05T10_40_31_378Z-debug.log
in many of solutions i got try npm install node-gyp
or uninstall or install it again but in that i am getting same error.
Also try with this steps:
- Install the latest versions of Python (it may not be related??), and "Microsoft Visual C++ Redistributable for Visual Studio 2017", and of course, Node.js and NPM;
- As Admin:
$ cd "C:Program Files
odejs
ode_modules
pm"
$ npm install node-gyp
- $ npm config set msvs_version 2015 --global
Note that I have VS 2017, but configuring it as ver 2017 won't work. Not sure why.
- As Admin:
$ npm install -g node-sass
And finally, one last check:
$ node-sass -v
and try with npm install --production windows-build-tools
but getting no result by any option.
tried with every solution but none of the working. i have installed python with 2.7.15, vc++ building tools, visual studio 2017 and all required components.
I am finding solution from last 2 weeks please suggest me correct answer
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…