一、该问题的重现步骤是什么?
1. kubesphere 通过镜像构建器部署报错
二、你期待的结果是什么?实际看到的又是什么?
期待的结果:如何解决这个报错?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
saber
四、请提供详细的错误堆栈信息,这很重要。
I0427 01:41:52.260517 1 sti.go:718] Building: /opt/rh/rh-nodejs8/root/usr/bin/node /opt/app-root/src/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
I0427 01:41:52.356190 1 sti.go:722] gyp info it worked if it ends with ok
I0427 01:41:52.357685 1 sti.go:722] gyp verb cli [ '/opt/rh/rh-nodejs8/root/usr/bin/node',
I0427 01:41:52.357766 1 sti.go:722] gyp verb cli '/opt/app-root/src/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
I0427 01:41:52.357919 1 sti.go:722] gyp verb cli 'rebuild',
I0427 01:41:52.357926 1 sti.go:722] gyp verb cli '--verbose',
I0427 01:41:52.357931 1 sti.go:722] gyp verb cli '--libsass_ext=',
I0427 01:41:52.357934 1 sti.go:722] gyp verb cli '--libsass_cflags=',
I0427 01:41:52.357938 1 sti.go:722] gyp verb cli '--libsass_ldflags=',
I0427 01:41:52.357941 1 sti.go:722] gyp verb cli '--libsass_library=' ]
I0427 01:41:52.358034 1 sti.go:722] gyp info using node-gyp@7.1.2
I0427 01:41:52.358095 1 sti.go:722] gyp info using node@8.16.1 | linux | x64
I0427 01:41:52.358295 1 sti.go:722] gyp verb command rebuild []
I0427 01:41:52.359413 1 sti.go:722] gyp verb command clean []
I0427 01:41:52.368524 1 sti.go:722] gyp verb clean removing "build" directory
I0427 01:41:52.371590 1 sti.go:722] gyp verb command configure []
I0427 01:41:52.401695 1 sti.go:722] gyp verb find Python Python is not set from command line or npm configuration
I0427 01:41:52.401724 1 sti.go:722] gyp verb find Python Python is not set from environment variable PYTHON
I0427 01:41:52.401846 1 sti.go:722] gyp verb find Python checking if "python3" can be used
I0427 01:41:52.401937 1 sti.go:722] gyp verb find Python - executing "python3" to get executable path
I0427 01:41:52.409149 1 sti.go:722] gyp verb find Python - "python3" is not in PATH or produced an error
I0427 01:41:52.409174 1 sti.go:722] gyp verb find Python checking if "python" can be used
I0427 01:41:52.409178 1 sti.go:722] gyp verb find Python - executing "python" to get executable path
I0427 01:41:52.456943 1 sti.go:722] gyp verb find Python - executable path is "/usr/bin/python"
I0427 01:41:52.457199 1 sti.go:722] gyp verb find Python - executing "/usr/bin/python" to get version
I0427 01:41:52.473177 1 sti.go:722] gyp verb find Python - version is "2.7.5"
I0427 01:41:52.477245 1 sti.go:722] gyp info find Python using Python version 2.7.5 found at "/usr/bin/python"
I0427 01:41:52.477469 1 sti.go:722] gyp verb get node dir no --target version specified, falling back to host node version: 8.16.1
I0427 01:41:52.477647 1 sti.go:722] gyp verb command install [ '8.16.1' ]
I0427 01:41:52.662614 1 sti.go:722] gyp verb install input version string "8.16.1"
I0427 01:41:52.662638 1 sti.go:722] gyp verb install installing version: 8.16.1
I0427 01:41:52.662656 1 sti.go:722] gyp verb install --ensure was passed, so won't reinstall if already installed
I0427 01:41:52.663096 1 sti.go:722] gyp verb install version not already installed, continuing with install 8.16.1
I0427 01:41:52.663456 1 sti.go:722] gyp verb ensuring nodedir is created /opt/app-root/src/.cache/node-gyp/8.16.1
I0427 01:41:52.664220 1 sti.go:722] gyp WARN install got an error, rolling back install
I0427 01:41:52.666167 1 sti.go:722] gyp verb command remove [ '8.16.1' ]
I0427 01:41:52.666718 1 sti.go:722] gyp verb remove using node-gyp dir: /opt/app-root/src/.cache/node-gyp
I0427 01:41:52.666773 1 sti.go:722] gyp verb remove removing target version: 8.16.1
I0427 01:41:52.666887 1 sti.go:722] gyp verb remove removing development files for version: 8.16.1
I0427 01:41:52.679159 1 sti.go:722] gyp ERR! configure error
I0427 01:41:52.679173 1 sti.go:722] gyp ERR! stack Error: ENOENT: no such file or directory, mkdir '/opt/app-root/src/.cache/node-gyp/8.16.1'
I0427 01:41:52.679178 1 sti.go:722] gyp ERR! System Linux 3.10.0-1160.53.1.el7.x86_64
I0427 01:41:52.679186 1 sti.go:722] gyp ERR! command "/opt/rh/rh-nodejs8/root/usr/bin/node" "/opt/app-root/src/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
I0427 01:41:52.679198 1 sti.go:722] gyp ERR! cwd /opt/app-root/src/node_modules/node-sass
I0427 01:41:52.679206 1 sti.go:722] gyp ERR! node -v v8.16.1
I0427 01:41:52.679210 1 sti.go:722] gyp ERR! node-gyp -v v7.1.2
I0427 01:41:52.679215 1 sti.go:722] gyp ERR! not ok
I0427 01:41:52.683601 1 sti.go:722] Build failed with error code: 1
I0427 01:41:54.216708 1 sti.go:722] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
I0427 01:41:54.216727 1 sti.go:722] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I0427 01:41:54.216823 1 sti.go:722] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
I0427 01:41:54.216959 1 sti.go:722] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I0427 01:41:54.216970 1 sti.go:722] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
I0427 01:41:54.216976 1 sti.go:722] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I0427 01:41:54.217072 1 sti.go:722]
I0427 01:41:54.236586 1 sti.go:722] npm ERR! code ELIFECYCLE
I0427 01:41:54.236614 1 sti.go:722] npm ERR! errno 1
I0427 01:41:54.236623 1 sti.go:722] npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`
I0427 01:41:54.236633 1 sti.go:722] npm ERR! Exit status 1
I0427 01:41:54.236641 1 sti.go:722] npm ERR!
I0427 01:41:54.236651 1 sti.go:722] npm ERR! Failed at the node-sass@6.0.1 postinstall script.
I0427 01:41:54.236663 1 sti.go:722] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I0427 01:41:54.483376 1 sti.go:722]
I0427 01:41:54.483397 1 sti.go:722] npm ERR! A complete log of this run can be found in:
I0427 01:41:54.483405 1 sti.go:722] npm ERR! /opt/app-root/src/.npm/_logs/2022-04-27T01_41_54_298Z-debug.log
I0427 01:41:54.577637 1 docker.go:1112] Waiting for container "0dd7168e5934c9ef79990b1ba535137da09b5692f6f8d67ef06f1a0bf909d479" to stop ...
I0427 01:41:56.445718 1 docker.go:1048] Removing container "0dd7168e5934c9ef79990b1ba535137da09b5692f6f8d67ef06f1a0bf909d479" ...
I0427 01:41:56.966541 1 docker.go:1058] Removed container "0dd7168e5934c9ef79990b1ba535137da09b5692f6f8d67ef06f1a0bf909d479"
I0427 01:41:56.967231 1 cleanup.go:33] Removing temporary directory /tmp/s2i122979878
I0427 01:41:56.967250 1 fs.go:302] Removing directory '/tmp/s2i122979878'
I0427 01:41:57.002386 1 s2i.go:75] Build failed
E0427 01:41:57.002417 1 errors.go:307] An error occurred: non-zero (13) exit code from kubesphere/nodejs-8-centos7:v3.2.0
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端