> node-sass@4.11.0 install E:webweb ode_modules ode-sass
> node scripts/install.js
node-sass build Binary found at F:Program Fileswin32-x64-57_binding.node
> node-sass@4.11.0 postinstall E:webweb ode_modules ode-sass
> node scripts/build.js
Binary found at F:Program Fileswin32-x64-57_binding.node
Testing binary
Binary has a problem: Error: The module '\?F:Program Fileswin32-x64-57_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at module.exports (E:webweb ode_modules ode-sasslibbinding.js:19:10)
at Object.<anonymous> (E:webweb ode_modules ode-sasslibindex.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
Building the binary locally
Building: C:Program Files odejs ode.exe E:webweb ode_modules ode-gypbin ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'E:\web\web\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:webweb ode_moduleswhichwhich.js:13:12)
gyp verb `which` failed at F (E:webweb ode_moduleswhichwhich.js:68:19)
gyp verb `which` failed at E (E:webweb ode_moduleswhichwhich.js:80:29)
gyp verb `which` failed at E:webweb ode_moduleswhichwhich.js:89:16
gyp verb `which` failed at E:webweb ode_modulesisexeindex.js:42:5
gyp verb `which` failed at E:webweb ode_modulesisexewindows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:webweb ode_moduleswhichwhich.js:13:12)
gyp verb `which` failed at F (E:webweb ode_moduleswhichwhich.js:68:19)
gyp verb `which` failed at E (E:webweb ode_moduleswhichwhich.js:80:29)
gyp verb `which` failed at E:webweb ode_moduleswhichwhich.js:89:16
gyp verb `which` failed at E:webweb ode_modulesisexeindex.js:42:5
gyp verb `which` failed at E:webweb ode_modulesisexewindows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python2 at getNotFoundError (E:\web\web\node_modules\which\which.js:13:12) at F (E:\web\web\node_modules\which\which.js:68:19) at E (E:\web\web\node_modules\which\which.js:80:29) at E:\web\web\node_modules\which\which.js:89:16 at E:\web\web\node_modules\isexe\index.js:42:5 at E:\web\web\node_modules\isexe\windows.js:36:5 at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:Python27python.EXE
gyp verb check python version `C:Python27python.EXE -c "import sys; print "2.7.2
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.14.1
gyp verb command install [ '10.14.1' ]
gyp verb install input version string "10.14.1"
gyp verb install installing version: 10.14.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.14.1
gyp verb build dir attempting to create "build" dir: E:webweb ode_modules ode-sassbuild
gyp verb build dir "build" dir needed to be created? E:webweb ode_modules ode-sassbuild
gyp verb Not using VS2017: Could not use PowerShell to find VS2017
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: E:webweb ode_modules ode-sassbuildconfig.gypi
gyp verb config.gypi checking for gypi file: E:webweb ode_modules ode-sassconfig.gypi
gyp verb common.gypi checking for gypi file: E:webweb ode_modules ode-sasscommon.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:Python27python.EXE
gyp info spawn args [ 'E:\web\web\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'E:\web\web\node_modules\node-sass\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'E:\web\web\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Administrator\.node-gyp\10.14.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\.node-gyp\10.14.1',
gyp info spawn args '-Dnode_gyp_dir=E:\web\web\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\Administrator\.node-gyp\10.14.1\<(target_arch)\node.lib',
gyp info spawn args '-Dmodule_root_dir=E:\web\web\node_modules\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\web\web\node_modules\node-sass\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:UsersAdministrator.node-gyp10.14.1
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp info spawn C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
生成启动时间为 2018/12/24 15:41:41。
MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
生成失败。
MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
0 个警告
1 个错误
已用时间 00:00:00.69
gyp ERR! build error
gyp ERR! stack Error: `C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:webweb ode_modules ode-gyplibbuild.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.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "E:\web\web\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:webweb ode_modules ode-sass
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 postinstall 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:Program Files odejs ode_cache_logs2018-12-24T07_41_43_096Z-debug.log
到此这篇安装node sass(安装nodesass失败gyp)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!版权声明:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权、违法违规、事实不符,请将相关资料发送至xkadmin@xkablog.com进行投诉反馈,一经查实,立即处理!
转载请注明出处,原文链接:https://www.xkablog.com/hd-nodejs/62350.html