错误内容
[INFO] --- frontend-maven-plugin:1.4:npm (npm install) @ atlas-dashboardv2 ---
[INFO] Running 'npm install' in D:\02-▒▒▒▒▒ռ▒\06-▒▒▒▒ռ▒\03-github\atlas-2.1.0-rc3\dashboardv2\target
[INFO]
[INFO] > node-sass@4.13.1 install D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-sass
[INFO] > node scripts/install.js
[INFO]
[INFO] Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node
[ERROR] Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node":
[ERROR]
[ERROR] tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8087
[ERROR]
[ERROR] Hint: If github.com is not accessible in your location
[ERROR] try setting a proxy via HTTP_PROXY, e.g.
[ERROR]
[ERROR] export HTTP_PROXY=http://example.com:1234
[ERROR]
[ERROR] or configure npm proxy via
[ERROR]
[ERROR] npm config set proxy http://example.com:8080
[INFO]
[INFO] > core-js@2.6.11 postinstall D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\core-js
[INFO] > node -e "try{require('./postinstall')}catch(e){}"
[INFO]
[INFO] Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
[INFO]
[INFO] The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
[INFO] > https://opencollective.com/core-js
[INFO] > https://www.patreon.com/zloirock
[INFO]
[INFO] Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
[INFO]
[INFO]
[INFO] > node-sass@4.13.1 postinstall D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-sass
[INFO] > node scripts/build.js
[INFO]
[INFO] Building: D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node\node.exe D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
[ERROR] gyp info it worked if it ends with ok
[ERROR] gyp verb cli [
[ERROR] gyp verb cli 'D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node\\node.exe',
[ERROR] gyp verb cli 'D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\node-gyp\\bin\\node-gyp.js',
[ERROR] gyp verb cli 'rebuild',
[ERROR] gyp verb cli '--verbose',
[ERROR] gyp verb cli '--libsass_ext=',
[ERROR] gyp verb cli '--libsass_cflags=',
[ERROR] gyp verb cli '--libsass_ldflags=',
[ERROR] gyp verb cli '--libsass_library='
[ERROR] gyp verb cli ]
[ERROR] gyp info using node-gyp@3.8.0
[ERROR] gyp info using node@12.16.0 | win32 | x64
[ERROR] gyp verb command rebuild []
[ERROR] gyp verb command clean []
[ERROR] gyp verb clean removing "build" directory
[ERROR] gyp verb command configure []
[ERROR] gyp verb check python checking for Python executable "python2" in the PATH
[ERROR] gyp verb `which` failed Error: not found: python2
[ERROR] gyp verb `which` failed at getNotFoundError (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:13:12)
[ERROR] gyp verb `which` failed at F (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:68:19)
[ERROR] gyp verb `which` failed at E (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:80:29)
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:89:16
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\index.js:42:5
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\windows.js:36:5
[ERROR] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:166:21)
[ERROR] gyp verb `which` failed python2 Error: not found: python2
[ERROR] gyp verb `which` failed at getNotFoundError (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:13:12)
[ERROR] gyp verb `which` failed at F (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:68:19)
[ERROR] gyp verb `which` failed at E (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:80:29)
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:89:16
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\index.js:42:5
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\windows.js:36:5
[ERROR] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:166:21) {
[ERROR] gyp verb `which` failed stack: 'Error: not found: python2\n' +
[ERROR] gyp verb `which` failed ' at getNotFoundError (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:13:12)\n' +
[ERROR] gyp verb `which` failed ' at F (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:68:19)\n' +
[ERROR] gyp verb `which` failed ' at E (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:80:29)\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:89:16\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\isexe\\index.js:42:5\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\isexe\\windows.js:36:5\n' +
[ERROR] gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:166:21)',
[ERROR] gyp verb `which` failed code: 'ENOENT'
[ERROR] gyp verb `which` failed }
[ERROR] gyp verb check python checking for Python executable "python" in the PATH
[ERROR] gyp verb `which` failed Error: not found: python
[ERROR] gyp verb `which` failed at getNotFoundError (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:13:12)
[ERROR] gyp verb `which` failed at F (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:68:19)
[ERROR] gyp verb `which` failed at E (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:80:29)
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:89:16
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\index.js:42:5
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\windows.js:36:5
[ERROR] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:166:21)
[ERROR] gyp verb `which` failed python Error: not found: python
[ERROR] gyp verb `which` failed at getNotFoundError (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:13:12)
[ERROR] gyp verb `which` failed at F (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:68:19)
[ERROR] gyp verb `which` failed at E (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:80:29)
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\which\which.js:89:16
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\index.js:42:5
[ERROR] gyp verb `which` failed at D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\isexe\windows.js:36:5
[ERROR] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:166:21) {
[ERROR] gyp verb `which` failed stack: 'Error: not found: python\n' +
[ERROR] gyp verb `which` failed ' at getNotFoundError (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:13:12)\n' +
[ERROR] gyp verb `which` failed ' at F (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:68:19)\n' +
[ERROR] gyp verb `which` failed ' at E (D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:80:29)\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\which\\which.js:89:16\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\isexe\\index.js:42:5\n' +
[ERROR] gyp verb `which` failed ' at D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\isexe\\windows.js:36:5\n' +
[ERROR] gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:166:21)',
[ERROR] gyp verb `which` failed code: 'ENOENT'
[ERROR] gyp verb `which` failed }
[ERROR] gyp verb could not find "python". checking python launcher
[ERROR] gyp verb could not find "python". guessing location
[ERROR] gyp verb ensuring that file exists: C:\Python27\python.exe
[ERROR] gyp ERR! configure error
[ERROR] gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
[ERROR] gyp ERR! stack at PythonFinder.failNoPython (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-gyp\lib\configure.js:484:19)
[ERROR] gyp ERR! stack at PythonFinder.<anonymous> (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-gyp\lib\configure.js:509:16)
[ERROR] gyp ERR! stack at callback (D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\graceful-fs\polyfills.js:295:20)
[ERROR] gyp ERR! stack at FSReqCallback.oncomplete (fs.js:166:21)
[ERROR] gyp ERR! System Windows_NT 10.0.19044
[ERROR] gyp ERR! command "D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node\\node.exe" "D:\\02-工作空间\\06-代码空间\\03-github\\atlas-2.1.0-rc3\\dashboardv2\\target\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
[ERROR] gyp ERR! cwd D:\02-工作空间\06-代码空间\03-github\atlas-2.1.0-rc3\dashboardv2\target\node_modules\node-sass
[ERROR] gyp ERR! node -v v12.16.0
[ERROR] gyp ERR! node-gyp -v v3.8.0
[ERROR] gyp ERR! not ok
[ERROR] Build failed with error code: 1
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the node-sass@4.13.1 postinstall script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! C:\Users\ROCKY\AppData\Roaming\npm-cache\_logs\2023-05-16T07_05_35_474Z-debug.log
报错原因
因为网络的问题,无法下载导致安装node-sass报错:
https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-72_binding.node
解决方案(亲测可行)
①. 先手动下载
②. 再复制文件到指定目录
将下载下来的文件win32-x64-72_binding.node复制到:
C:\Users\ROCKY\AppData\Roaming\npm-cache\node-sass\4.13.1 目录下.
③. 执行安装
执行指令:npm i node-sass