When I try to build a project it crashes. Using Docker and trying to build Frontend. What could go wrong? Before that I had error p@0.1.0: The engine "node" is incompatible with this module. Expected version "16.x". Got "17.0.1" . I just changed the version of node.js to 17x in package.json. And there is a new big error, this log is at the bottom. The project seems to be coming together, but it also goes down immediately. Trying to globally install node.js version 16x doesn't help
=> ERROR [p_frontend 4/5] RUN yarn 88.5s
------
> [p_frontend 4/5] RUN yarn:
#19 0.536 yarn install v1.22.15
#19 0.567 info No lockfile found.
#19 0.576 [1/5] Validating package.json...
#19 0.579 [2/5] Resolving packages...
#19 3.435 warning node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#19 3.722 warning node-sass > request > har-validator@5.1.5: this library is no longer supported
#19 3.801 warning node-sass > request > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#19 4.292 warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#19 9.855 warning react-scripts > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
#19 14.73 warning react-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
#19 14.73 warning react-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
#19 14.87 warning react-scripts > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#19 14.93 warning react-scripts > webpack-dev-server > webpack-log > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
#19 15.35 warning react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
#19 16.32 warning react-scripts > @pmmmwh/react-refresh-webpack-plugin > native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
#19 16.32 warning react-scripts > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
#19 18.03 warning react-scripts > resolve-url-loader > rework > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#19 18.03 warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#19 18.03 warning react-scripts > resolve-url-loader > rework > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
#19 18.18 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: Switch to 'npm install joi'
#19 18.19 warning react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
#19 19.72 warning react-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
#19 20.07 warning react-scripts > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
#19 20.57 warning react-scripts > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
#19 20.72 warning react-scripts > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
#19 20.98 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
#19 21.00 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
#19 21.00 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
#19 21.04 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
#19 21.04 warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
#19 22.10 warning react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
#19 28.45 [3/5] Fetching packages...
#19 66.47 info fsevents@2.3.2: The platform "linux" is incompatible with this module.
#19 66.47 info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
#19 66.47 info fsevents@1.2.13: The platform "linux" is incompatible with this module.
#19 66.47 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
#19 66.49 [4/5] Linking dependencies...
#19 66.49 warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
#19 66.49 warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
#19 66.50 warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
#19 85.86 [5/5] Building fresh packages...
#19 88.05 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#19 88.05 error /app/node_modules/node-sass: Command failed.
#19 88.05 Exit code: 1
#19 88.05 Command: node scripts/build.js
#19 88.05 Arguments:
#19 88.05 Directory: /app/node_modules/node-sass
#19 88.05 Output:
#19 88.05 Building: /usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#19 88.05 gyp info it worked if it ends with ok
#19 88.05 gyp verb cli [
#19 88.05 gyp verb cli '/usr/local/bin/node',
#19 88.05 gyp verb cli '/app/node_modules/node-gyp/bin/node-gyp.js',
#19 88.05 gyp verb cli 'rebuild',
#19 88.05 gyp verb cli '--verbose',
#19 88.05 gyp verb cli '--libsass_ext=',
#19 88.05 gyp verb cli '--libsass_cflags=',
#19 88.05 gyp verb cli '--libsass_ldflags=',
#19 88.05 gyp verb cli '--libsass_library='
#19 88.05 gyp verb cli ]
#19 88.05 gyp info using node-gyp@7.1.2
#19 88.05 gyp info using node@17.0.1 | linux | x64
#19 88.05 gyp verb command rebuild []
#19 88.05 gyp verb command clean []
#19 88.05 gyp verb clean removing "build" directory
#19 88.05 gyp verb command configure []
#19 88.05 gyp verb find Python Python is not set from command line or npm configuration
#19 88.05 gyp verb find Python Python is not set from environment variable PYTHON
#19 88.05 gyp verb find Python checking if "python3" can be used
#19 88.05 gyp verb find Python - executing "python3" to get executable path
#19 88.05 gyp verb find Python - "python3" is not in PATH or produced an error
#19 88.05 gyp verb find Python checking if "python" can be used
#19 88.05 gyp verb find Python - executing "python" to get executable path
#19 88.05 gyp verb find Python - "python" is not in PATH or produced an error
#19 88.05 gyp verb find Python checking if "python2" can be used
#19 88.05 gyp verb find Python - executing "python2" to get executable path
#19 88.05 gyp verb find Python - "python2" is not in PATH or produced an error
#19 88.05 gyp ERR! find Python
#19 88.05 gyp ERR! find Python Python is not set from command line or npm configuration
#19 88.05 gyp ERR! find Python Python is not set from environment variable PYTHON
#19 88.05 gyp ERR! find Python checking if "python3" can be used
#19 88.05 gyp ERR! find Python - "python3" is not in PATH or produced an error
#19 88.05 gyp ERR! find Python checking if "python" can be used
#19 88.05 gyp ERR! find Python - "python" is not in PATH or produced an error
#19 88.05 gyp ERR! find Python checking if "python2" can be used
#19 88.05 gyp ERR! find Python - "python2" is not in PATH or produced an error
#19 88.05 gyp ERR! find Python
#19 88.05 gyp ERR! find Python **********************************************************
#19 88.05 gyp ERR! find Python You need to install the latest version of Python.
#19 88.05 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#19 88.05 gyp ERR! find Python you can try one of the following options:
#19 88.05 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#19 88.05 gyp ERR! find Python (accepted by both node-gyp and npm)
#19 88.05 gyp ERR! find Python - Set the environment variable PYTHON
#19 88.05 gyp ERR! find Python - Set the npm configuration variable python:
#19 88.05 gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#19 88.05 gyp ERR! find Python For more information consult the documentation at:
#19 88.05 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#19 88.05 gyp ERR! find Python **********************************************************
#19 88.05 gyp ERR! find Python
#19 88.05 gyp ERR! configure error
#19 88.05 gyp ERR! stack Error: Could not find any Python installation to use
#19 88.05 gyp ERR! stack at PythonFinder.fail (/app/node_modules/node-gyp/lib/find-python.js:302:47)
#19 88.05 gyp ERR! stack at PythonFinder.runChecks (/app/node_modules/node-gyp/lib/find-python.js:136:21)
#19 88.05 gyp ERR! stack at PythonFinder.<anonymous> (/app/node_modules/node-gyp/lib/find-python.js:179:16)
#19 88.05 gyp ERR! stack at PythonFinder.execFileCallback (/app/node_modules/node-gyp/lib/find-python.js:266:16)
#19 88.05 gyp ERR! stack at exithandler (node:child_process:404:5)
#19 88.05 gyp ERR! stack at ChildProcess.errorhandler (node:child_process:416:5)
#19 88.05 gyp ERR! stack at ChildProcess.emit (node:events:390:28)
#19 88.05 gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
#19 88.05 gyp ERR! stack at onErrorNT (node:internal/child_process:475:16)
#19 88.05 gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
#19 88.05 gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#19 88.05 gyp ERR! command "/usr/local/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
#19 88.05 gyp ERR! cwd /app/node_modules/node-sass
#19 88.05 gyp ERR! node -v v17.0.1
#19 88.05 gyp ERR! node-gyp -v v7.1.2
#19 88.05 gyp ERR! not ok
#19 88.05 Build failed with error code: 1
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c yarn]: exit code: 1