我npm 安装的时候报 python未安装错误,装插件必须要装python吗?
主要错误提示:
bash gyp verbwhichfailed Error: not found: python2 gyp verbwhichfailed at getNotFoundError (E:\vue\blm\xz\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (E:\vue\blm\xz\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (E:\vue\blm\xz\node_modules\which\which.js:80:29) gyp verbwhichfailed at E:\vue\blm\xz\node_modules\which\which.js:89:16 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed python2 { Error: not found: python2 gyp verbwhichfailed at getNotFoundError (E:\vue\blm\xz\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (E:\vue\blm\xz\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (E:\vue\blm\xz\node_modules\which\which.js:80:29) gyp verbwhichfailed at E:\vue\blm\xz\node_modules\which\which.js:89:16 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed stack: 'Error: not found: python2\n at getNotFoundError (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:13:12)\n at F (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:68:19)\n at E (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:80:29)\n at E:\\vue\\blm\\xz\\node_modules\\which\\which.js:89:16\n at E:\\vue\\blm\\xz\\node_modules\\isexe\\index.js:42:5\n at E:\\vue\\blm\\xz\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)', gyp verbwhichfailed code: 'ENOENT' } gyp verb check python checking for Python executable "python" in the PATH gyp verbwhichfailed Error: not found: python gyp verbwhichfailed at getNotFoundError (E:\vue\blm\xz\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (E:\vue\blm\xz\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (E:\vue\blm\xz\node_modules\which\which.js:80:29) gyp verbwhichfailed at E:\vue\blm\xz\node_modules\which\which.js:89:16 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed python { Error: not found: python gyp verbwhichfailed at getNotFoundError (E:\vue\blm\xz\node_modules\which\which.js:13:12) gyp verbwhichfailed at F (E:\vue\blm\xz\node_modules\which\which.js:68:19) gyp verbwhichfailed at E (E:\vue\blm\xz\node_modules\which\which.js:80:29) gyp verbwhichfailed at E:\vue\blm\xz\node_modules\which\which.js:89:16 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\index.js:42:5 gyp verbwhichfailed at E:\vue\blm\xz\node_modules\isexe\windows.js:36:5 gyp verbwhichfailed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhichfailed stack: 'Error: not found: python\n at getNotFoundError (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:13:12)\n at F (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:68:19)\n at E (E:\\vue\\blm\\xz\\node_modules\\which\\which.js:80:29)\n at E:\\vue\\blm\\xz\\node_modules\\which\\which.js:89:16\n at E:\\vue\\blm\\xz\\node_modules\\isexe\\index.js:42:5\n at E:\\vue\\blm\\xz\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)', gyp verbwhich failed code: 'ENOENT' } gyp verb could not find "python". checking python launcher gyp verb could not find "python". guessing location gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (E:\vue\blm\xz\node_modules\node-gyp\lib\configure.js:484:19) gyp ERR! stack at PythonFinder.<anonymous> (E:\vue\blm\xz\node_modules\node-gyp\lib\configure.js:509:16) gyp ERR! stack at E:\vue\blm\xz\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\vue\\blm\\xz\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd E:\vue\blm\xz\node_modules\node-sass gyp ERR! node -v v8.11.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok