root@avatar3d-ver9:/home/az-user/metaplex/js# yarn build
yarn run v1.22.17
$ lerna run build --ignore=token-entangler --ignore=candy-machine-ui
lerna notice cli v3.22.1
lerna info versioning independent
lerna notice filter excluding ["token-entangler","candy-machine-ui"]
lerna info filter [ '!token-entangler', '!candy-machine-ui' ]
lerna info Executing command in 4 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@oyster/common' in 6.2s:
$ run-s build-ts build-css
$ tsc
$ less-watch-compiler src/ dist/lib/ --run-once
Running less-watch-compiler once.
lerna ERR! yarn run build exited 1 in 'gumdrop'
lerna ERR! yarn run build stdout:
$ react-scripts build
Creating an optimized production build...
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:135:10)
at module.exports (/home/az-user/metaplex/js/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:471:10)
at /home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:503:5
at /home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:358:12
at /home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at runSyncOrAsync (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at Array.<anonymous> (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/home/az-user/metaplex/js/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /home/az-user/metaplex/js/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
/home/az-user/metaplex/js/packages/gumdrop/node_modules/react-scripts/scripts/build.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:135:10)
at module.exports (/home/az-user/metaplex/js/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:417:16)
at /home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:452:10
at /home/az-user/metaplex/js/node_modules/webpack/lib/NormalModule.js:323:13
at /home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/az-user/metaplex/js/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/az-user/metaplex/js/packages/gumdrop/node_modules/babel-loader/lib/index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Giải quyết bằng
export NODE_OPTIONS=--openssl-legacy-provider