APACHE-ATLAS-2.1.0 - 【编译打包】- 在WINDOWS下使用命令行编译打包报错:无法下载win32-x64-72_binding.node文件

错误内容

[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

在这里插入图片描述

ATLAS的打包命令如下:在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cloneme01

谢谢您的支持与鼓励!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值