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

ERROR: Service 'client' failed to build: The command '/bin/sh -c cd /app/client && npm run build' returned a non-zero code: 1 #28

Open
logankim79 opened this issue Apr 13, 2023 · 0 comments

Comments

@logankim79
Copy link

Does any one know? what is the issue...

[root@mgt23 infiniband-radar-web]# GATEWAY_CERTS="$PWD/ssl_certs" docker-compose up --build -d
Building client
Step 1/16 : FROM node:alpine as builder
---> adb3ed8bc61e
Step 2/16 : RUN apk add --no-cache git
---> Using cache
---> 1dabc9da4e64
Step 3/16 : WORKDIR /app/client/
---> Using cache
---> 9147f9b1b584
Step 4/16 : COPY client/package.json client/package-lock.json /app/client/
---> Using cache
---> b331cd5b7dad
Step 5/16 : COPY .git /app/
---> Using cache
---> d9446050d087
Step 6/16 : RUN cd /app/client && npm set progress=false && npm install
---> Using cache
---> edd2c0928461
Step 7/16 : COPY common/ /app/common
---> Using cache
---> c3d16c08cef0
Step 8/16 : RUN cd /app/common/3dparty/vis && npm install
---> Using cache
---> 5c95e8ebcf48
Step 9/16 : COPY client/ /app/client
---> Using cache
---> c7c520ac1fb3
Step 10/16 : RUN cd /app/client && npm run build
---> Running in 98412eb30e9b

[email protected] build
vue-cli-service build

  • Building for production...
    Starting type checking and linting service...
    Using 1 worker with 2048MB memory limit
    **Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at module.exports (/app/client/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/app/client/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/app/client/node_modules/webpack/lib/NormalModule.js:471:10)
    at /app/client/node_modules/webpack/lib/NormalModule.js:503:5
    at /app/client/node_modules/webpack/lib/NormalModule.js:358:12
    at /app/client/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /app/client/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array. (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/app/client/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /app/client/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    /app/client/node_modules/loader-runner/lib/LoaderRunner.js:114
    throw e;
    ^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at module.exports (/app/client/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/app/client/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/app/client/node_modules/webpack/lib/NormalModule.js:471:10)
at /app/client/node_modules/webpack/lib/NormalModule.js:503:5
at /app/client/node_modules/webpack/lib/NormalModule.js:358:12
at /app/client/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /app/client/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/app/client/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /app/client/node_modules/cache-loader/dist/index.js:147:7
at /app/client/node_modules/graceful-fs/graceful-fs.js:61:14
at FSReqCallback.oncomplete (node:fs:185:23) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v19.9.0
ERROR: Service 'client' failed to build: The command '/bin/sh -c cd /app/client && npm run build' returned a non-zero code: 1
[root@mgt23 infiniband-radar-web]#**

[root@mgt23 infiniband-radar-web]# n
copying : node/19.9.0
installed : v19.9.0 (with npm 9.6.3)

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