求大神解惑!报错如图,非常感谢!
版本:renren-fast |
开发环境:jdk11 |
> node-sass@4.9.0 install C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass@4.9.0 postinstall C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass
> node scripts/build.js
Building: D:\Program\nodejs\node.exe C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags=
--libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'D:\\Program\\nodejs\\node.exe',
gyp verb cli 'C:\\Users\\19952\\Desktop\\renren-fast-vue\\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 verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@12.18.3 | 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 (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\19952\Desktop\renren-fast-vue\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python27\python.EXE
gyp verb check python version `C:\Python27\python.EXE -c "import sys; print "2.7.0
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: 12.18.3
gyp verb command install [ '12.18.3' ]
gyp verb install input version string "12.18.3"
gyp verb install installing version: 12.18.3
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: 12.18.3
gyp verb build dir attempting to create "build" dir: C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass\build
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: C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [
gyp info spawn args 'C:\\Users\\19952\\Desktop\\renren-fast-vue\\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 'C:\\Users\\19952\\Desktop\\renren-fast-vue\\node_modules\\node-sass\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\19952\\Desktop\\renren-fast-vue\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\19952\\.node-gyp\\12.18.3\\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\\19952\\.node-gyp\\12.18.3',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\19952\\Desktop\\renren-fast-vue\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\19952\\.node-gyp\\12.18.3\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\19952\\Desktop\\renren-fast-vue\\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 'C:\\Users\\19952\\Desktop\\renren-fast-vue\\node_modules\\node-sass\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
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:\Users\19952\.node-gyp\12.18.3
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:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
生成启动时间为 2020/8/18 7:25:01。
MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
生成失败。
MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
0 个警告
1 个错误
已用时间 00:00:00.03
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-gyp\lib\build.js:262: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 "D:\\Program\\nodejs\\node.exe" "C:\\Users\\19952\\Desktop\\renren-fast-vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\19952\Desktop\renren-fast-vue\node_modules\node-sass
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.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:\Users\19952\AppData\Roaming\npm-cache\_logs\2020-08-17T23_25_02_412Z-debug.log
-
2020-08-18
需要使用node8