通过yarninstall安装依赖包node-sass时,一直报错,具体报错原因为Commandfailed。应该如何解决这个问题呢?报错信息D:\testspace\test\node_modules\node-sass:Commandfailed.Exitcode:1Command:nodescripts/build.jsArguments:Directory:D:\testspace\test\node_modules\node-sassOutput:建筑:C:\=--libsass_library=gypinfo如果它以okgypverbcli结尾就有效[gypverbcli'C:\\ProgramFiles\\nodejs\\node.exe',gypverbcli'D:\\testspace\\test\\node_modules\\node-gyp\\bin\\node-gyp.js',gypverbcli'rebuild',gypverbcli'--verbose',gypverbcli'--libsass_ext=',gypverbcli'--libsass_cflags=',gypverbcli'--libsass_ldflags=',gypverbcli'--libsass_library='gypverbcli]gyp信息使用node-gyp@3.8.0gyp信息使用node@16.14.2|Win32|x64gyp动词命令重建[]gyp动词命令清理[]gyp动词清理删除“构建”目录gyp动词命令配置[]gypverbdownloadusingdist-urlhttps://npm.taobao.org/distgypverbcheckpython检查PATHgypverb`which`中的Python可执行文件“python2”failedError:notfound:python2gypverb`which`failedatgetNotFoundError(D:\testspace\test\node_modules\which\which.js:13:12)gypverb`which`在F失败(D:\testspace\test\node_modules\which\which.js:68:19)gypverb`which`在E(D:\testspace\test\node_modules\which\which.js:80:29)gyp动词`which`在D:\testspace\test\node_modules\which\which.js:89:16gyp失败动词`which`在D:\testspace\test\node_modules\isexe\index.js:42:5gyp动词`which`在D:\testspace\test\node_modules\isexe\windows.js:36:5gyp动词`失败which`在FSReqCallback.oncomplete(node:fs:198:21)gypverb`which`failedpython2Error:notfound:python2gypverb`which`在getNotFoundError(D:\testspace\test\node_modules\which\which.js:13:12)gyp动词`which`f失败于F(D:\testspace\test\node_modules\which\which.js:68:19)gyp动词`which`失败于E(D:\testspace\test\node_modules\which\which.js:80:29)gyp动词`which`在D:\testspace\test\node_modules\which\which.js:89:16gyp动词`which`在D:\testspace\test\node_modules\isexe\index.js:42:5gyp失败动词`which`在D:\testspace\test\node_modules\isexe\windows.js:36:5gypverb`which`在FSReqCallback.oncomplete(node:fs:198:21)处失败{gypverb`which`失败代码:'ENOENT'gypverb`which`failed}gypverbcheckpython检查PATHgypverb中的Python可执行文件“python”gypverb`which`成功pythonC:\Users\PC\AppData\Local\Programs\Python\Python36\python.EXEgyp错误!配置errorgyp错误!堆栈错误:命令失败:C:\Users\PC\AppData\Local\Programs\Python\Python36\python.EXE-cimportsys;打印"%s.%s.%s"%sys.version_info[:3];gyp错误!堆栈文件“
