npm安装node-sass总是报错,错误信息如下:
Building: D:\Program Files (x86)\nodejs\node.exe F:\workspace_vue\project\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 Files (x86)\\nodejs\\node.exe',
gyp verb cli 'F:\\workspace_vue\\project\\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.17.0 | 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 (F:\workspace_vue\project\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\workspace_vue\project\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\workspace_vue\project\node_modules\which\which.js: