Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue project build failed #43

Open
jangrui opened this issue Mar 10, 2022 · 0 comments
Open

vue project build failed #43

jangrui opened this issue Mar 10, 2022 · 0 comments

Comments

@jangrui
Copy link

jangrui commented Mar 10, 2022

I0310 14:20:23.483210       1 docker.go:800] Image sha256:94aae0fdd58a9cacb722b3ef38256bbc34c4ec4e53e0929460db925d2b1565d0 contains scripts-url set to "image:///usr/libexec/s2i"

 I0310 14:20:23.483227       1 docker.go:872] Base directory for S2I scripts is '/usr/libexec/s2i'. Untarring destination is '/tmp'.

 I0310 14:20:23.483344       1 docker.go:1038] Creating container with options {Name:"s2i_kubesphere_nodejs_8_centos7_v3_2_0_ac2d60d1" Config:{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[NPM_MIRROR=https://registry.npmmirror.com NPM_RUN=npm install NPM_RUN=npm run dev] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble] Healthcheck:<nil> ArgsEscaped:false Image:kubesphere/nodejs-8-centos7:v3.2.0 Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} HostConfig:&{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode: PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[] DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:67108864 Sysctls:map[] Runtime: ConsoleSize:[0 0] Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DiskQuota:0 KernelMemory:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:0 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] Init:<nil>}} ...

 I0310 14:20:23.739151       1 docker.go:1070] Attaching to container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:20:23.742083       1 docker.go:1081] Starting container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:20:24.791009       1 sti.go:718] ---> Installing application source ...

 I0310 14:20:25.042821       1 sti.go:718] ---> Installing all dependencies

 I0310 14:20:28.112808       1 sti.go:722] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

 I0310 14:20:32.050289       1 sti.go:722] npm WARN deprecated [email protected]: this library is no longer supported

 I0310 14:21:33.208235       1 sti.go:718] 

 I0310 14:21:33.208255       1 sti.go:718] > [email protected] install /opt/app-root/src/node_modules/chromedriver

 I0310 14:21:33.208262       1 sti.go:718] > node install.js

 I0310 14:21:33.208266       1 sti.go:718] 

 I0310 14:21:33.572162       1 sti.go:718] Downloading https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip

 I0310 14:21:33.572188       1 sti.go:718] Saving to /tmp/chromedriver/chromedriver_linux64.zip

 I0310 14:21:34.104563       1 sti.go:718] Receiving...

 I0310 14:21:34.674640       1 sti.go:718] Received 781K...

 I0310 14:21:34.778564       1 sti.go:718] Received 1568K...

 I0310 14:21:34.840714       1 sti.go:718] Received 2352K...

 I0310 14:21:34.882097       1 sti.go:718] Received 3136K...

 I0310 14:21:34.889345       1 sti.go:718] Received 3259K total.

 I0310 14:21:34.889772       1 sti.go:718] Extracting zip contents

 I0310 14:21:35.018286       1 sti.go:718] Copying to target path /opt/app-root/src/node_modules/chromedriver/lib/chromedriver

 I0310 14:21:35.041158       1 sti.go:718] Fixing file permissions

 I0310 14:21:35.041176       1 sti.go:718] Done. ChromeDriver binary available at /opt/app-root/src/node_modules/chromedriver/lib/chromedriver/chromedriver

 I0310 14:21:35.169262       1 sti.go:718] 

 I0310 14:21:35.169277       1 sti.go:718] > [email protected] install /opt/app-root/src/node_modules/node-sass

 I0310 14:21:35.169281       1 sti.go:718] > node scripts/install.js

 I0310 14:21:35.169285       1 sti.go:718] 

 I0310 14:21:35.500121       1 sti.go:722] Unable to save binary /opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57 : { Error: ENOENT: no such file or directory, mkdir '/opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57'

 I0310 14:21:35.500146       1 sti.go:722]     at Object.fs.mkdirSync (fs.js:885:18)

 I0310 14:21:35.500154       1 sti.go:722]     at checkAndDownloadBinary (/opt/app-root/src/node_modules/node-sass/scripts/install.js:113:8)

 I0310 14:21:35.500161       1 sti.go:722]     at Object.<anonymous> (/opt/app-root/src/node_modules/node-sass/scripts/install.js:156:1)

 I0310 14:21:35.500166       1 sti.go:722]     at Module._compile (module.js:653:30)

 I0310 14:21:35.500173       1 sti.go:722]     at Object.Module._extensions..js (module.js:664:10)

 I0310 14:21:35.500182       1 sti.go:722]     at Module.load (module.js:566:32)

 I0310 14:21:35.500188       1 sti.go:722]     at tryModuleLoad (module.js:506:12)

 I0310 14:21:35.500193       1 sti.go:722]     at Function.Module._load (module.js:498:3)

 I0310 14:21:35.500198       1 sti.go:722]     at Function.Module.runMain (module.js:694:10)

 I0310 14:21:35.500203       1 sti.go:722]     at startup (bootstrap_node.js:204:16)

 I0310 14:21:35.500208       1 sti.go:722]   errno: -2,

 I0310 14:21:35.500213       1 sti.go:722]   code: 'ENOENT',

 I0310 14:21:35.500227       1 sti.go:722]   syscall: 'mkdir',

 I0310 14:21:35.500233       1 sti.go:722]   path: '/opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57' }

 I0310 14:21:37.066905       1 sti.go:718] 

 I0310 14:21:37.066921       1 sti.go:718] > [email protected] postinstall /opt/app-root/src/node_modules/webpack/node_modules/uglifyjs-webpack-plugin

 I0310 14:21:37.066927       1 sti.go:718] > node lib/post_install.js

 I0310 14:21:37.066932       1 sti.go:718] 

 I0310 14:21:37.209190       1 sti.go:718] 

 I0310 14:21:37.209209       1 sti.go:718] > [email protected] postinstall /opt/app-root/src/node_modules/node-sass

 I0310 14:21:37.209216       1 sti.go:718] > node scripts/build.js

 I0310 14:21:37.209220       1 sti.go:718] 

 I0310 14:21:37.422197       1 sti.go:718] Building: /opt/rh/rh-nodejs8/root/usr/bin/node /opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

 I0310 14:21:37.547866       1 sti.go:722] gyp info it worked if it ends with ok

 I0310 14:21:37.549259       1 sti.go:722] gyp verb cli [ '/opt/rh/rh-nodejs8/root/usr/bin/node',

 I0310 14:21:37.549343       1 sti.go:722] gyp verb cli   '/opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js',

 I0310 14:21:37.549427       1 sti.go:722] gyp verb cli   'rebuild',

 I0310 14:21:37.549435       1 sti.go:722] gyp verb cli   '--verbose',

 I0310 14:21:37.549449       1 sti.go:722] gyp verb cli   '--libsass_ext=',

 I0310 14:21:37.549515       1 sti.go:722] gyp verb cli   '--libsass_cflags=',

 I0310 14:21:37.549636       1 sti.go:722] gyp verb cli   '--libsass_ldflags=',

 I0310 14:21:37.549646       1 sti.go:722] gyp verb cli   '--libsass_library=' ]

 I0310 14:21:37.549803       1 sti.go:722] gyp info using [email protected]

 I0310 14:21:37.549866       1 sti.go:722] gyp info using [email protected] | linux | x64

 I0310 14:21:37.550151       1 sti.go:722] gyp verb command rebuild []

 I0310 14:21:37.551212       1 sti.go:722] gyp verb command clean []

 I0310 14:21:37.559983       1 sti.go:722] gyp verb clean removing "build" directory

 I0310 14:21:37.562558       1 sti.go:722] gyp verb command configure []

 I0310 14:21:37.590462       1 sti.go:722] gyp verb find Python Python is not set from command line or npm configuration

 I0310 14:21:37.590633       1 sti.go:722] gyp verb find Python Python is not set from environment variable PYTHON

 I0310 14:21:37.590686       1 sti.go:722] gyp verb find Python checking if "python3" can be used

 I0310 14:21:37.590876       1 sti.go:722] gyp verb find Python - executing "python3" to get executable path

 I0310 14:21:37.597341       1 sti.go:722] gyp verb find Python - "python3" is not in PATH or produced an error

 I0310 14:21:37.597358       1 sti.go:722] gyp verb find Python checking if "python" can be used

 I0310 14:21:37.597367       1 sti.go:722] gyp verb find Python - executing "python" to get executable path

 I0310 14:21:37.614244       1 sti.go:722] gyp verb find Python - executable path is "/usr/bin/python"

 I0310 14:21:37.614461       1 sti.go:722] gyp verb find Python - executing "/usr/bin/python" to get version

 I0310 14:21:37.626259       1 sti.go:722] gyp verb find Python - version is "2.7.5"

 I0310 14:21:37.629838       1 sti.go:722] gyp info find Python using Python version 2.7.5 found at "/usr/bin/python"

 I0310 14:21:37.630081       1 sti.go:722] gyp verb get node dir no --target version specified, falling back to host node version: 8.16.1

 I0310 14:21:37.630298       1 sti.go:722] gyp verb command install [ '8.16.1' ]

 I0310 14:21:37.769549       1 sti.go:722] gyp verb install input version string "8.16.1"

 I0310 14:21:37.769736       1 sti.go:722] gyp verb install installing version: 8.16.1

 I0310 14:21:37.769750       1 sti.go:722] gyp verb install --ensure was passed, so won't reinstall if already installed

 I0310 14:21:37.770194       1 sti.go:722] gyp verb install version not already installed, continuing with install 8.16.1

 I0310 14:21:37.770571       1 sti.go:722] gyp verb ensuring nodedir is created /opt/app-root/src/.cache/node-gyp/8.16.1

 I0310 14:21:37.771245       1 sti.go:722] gyp WARN install got an error, rolling back install

 I0310 14:21:37.771352       1 sti.go:722] gyp verb command remove [ '8.16.1' ]

 I0310 14:21:37.771897       1 sti.go:722] gyp verb remove using node-gyp dir: /opt/app-root/src/.cache/node-gyp

 I0310 14:21:37.772999       1 sti.go:722] gyp verb remove removing target version: 8.16.1

 I0310 14:21:37.773012       1 sti.go:722] gyp verb remove removing development files for version: 8.16.1

 I0310 14:21:37.773018       1 sti.go:722] gyp ERR! configure error 

 I0310 14:21:37.773024       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'

 I0310 14:21:37.773029       1 sti.go:722] gyp ERR! System Linux 5.4.170-1.el7.elrepo.x86_64

 I0310 14:21:37.773350       1 sti.go:722] gyp ERR! command "/opt/rh/rh-nodejs8/root/usr/bin/node" "/opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="

 I0310 14:21:37.773363       1 sti.go:722] gyp ERR! cwd /opt/app-root/src/node_modules/node-sass

 I0310 14:21:37.773373       1 sti.go:722] gyp ERR! node -v v8.16.1

 I0310 14:21:37.773380       1 sti.go:722] gyp ERR! node-gyp -v v7.1.2

 I0310 14:21:37.773385       1 sti.go:722] gyp ERR! not ok 

 I0310 14:21:37.778296       1 sti.go:722] Build failed with error code: 1

 I0310 14:21:40.669893       1 sti.go:722] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):

 I0310 14:21:40.669918       1 sti.go:722] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

 I0310 14:21:40.669937       1 sti.go:722] 

 I0310 14:21:40.694033       1 sti.go:722] npm ERR! code ELIFECYCLE

 I0310 14:21:40.694189       1 sti.go:722] npm ERR! errno 1

 I0310 14:21:40.694344       1 sti.go:722] npm ERR! [email protected] postinstall: `node scripts/build.js`

 I0310 14:21:40.694355       1 sti.go:722] npm ERR! Exit status 1

 I0310 14:21:40.694494       1 sti.go:722] npm ERR! 

 I0310 14:21:40.694506       1 sti.go:722] npm ERR! Failed at the [email protected] postinstall script.

 I0310 14:21:40.694513       1 sti.go:722] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 I0310 14:21:40.826310       1 sti.go:722] 

 I0310 14:21:40.826327       1 sti.go:722] npm ERR! A complete log of this run can be found in:

 I0310 14:21:40.826334       1 sti.go:722] npm ERR!     /opt/app-root/src/.npm/_logs/2022-03-10T14_21_40_774Z-debug.log

 I0310 14:21:40.923347       1 docker.go:1112] Waiting for container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" to stop ...

 I0310 14:21:41.259138       1 docker.go:1048] Removing container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:21:42.202189       1 docker.go:1058] Removed container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d"

 I0310 14:21:42.202694       1 cleanup.go:33] Removing temporary directory /tmp/s2i251979216

 I0310 14:21:42.202708       1 fs.go:302] Removing directory '/tmp/s2i251979216'

 I0310 14:21:42.226179       1 s2i.go:75] Build failed

 E0310 14:21:42.226200       1 errors.go:307] An error occurred: non-zero (13) exit code from kubesphere/nodejs-8-centos7:v3.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant