Service ‘mfe’ failed to build: The command ‘/bin/sh -c npm clean-install –no-audit –no-fund –registry=$NPM_REGISTRY && rm -rf ~/.npm’ returned a non-zero code: 1

17.92 npm WARN deprecated core-js@1.2.7: core-js@<3.23.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. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
18.06 npm WARN deprecated core-js@2.6.12: core-js@<3.23.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. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
19.36 npm WARN deprecated acorn-dynamic-import@2.0.2: This is probably built in to whatever tool you're using. If you still need it... idk
20.73 npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
21.12 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
22.50 
22.50 > edx@0.1.0 postinstall
22.50 > scripts/copy-node-modules.sh
22.50 
22.51 sh: 1: scripts/copy-node-modules.sh: not found
22.51 npm ERR! code 127
22.51 npm ERR! path /openedx/edx-platform
22.52 npm ERR! command failed
22.52 npm ERR! command sh -c scripts/copy-node-modules.sh
22.52 
22.52 npm ERR! A complete log of this run can be found in:
22.52 npm ERR!     /root/.npm/_logs/2023-10-22T08_30_58_021Z-debug-0.log
------
Dockerfile:125
--------------------
 124 |     
 125 | >>> RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json \
 126 | >>>     --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json \
 127 | >>>     --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --registry=$NPM_REGISTRY
 128 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c npm clean-install --no-audit --registry=$NPM_REGISTRY" did not complete successfully: exit code: 127
Error: Command failed with status 1: docker buildx build --tag=openedx-dev:16.1.4 --output=type=docker --target=development --build-arg=APP_USER_ID=501 --cache-from=type=registry,ref=openedx-dev:16.1.4-cache --build-context=edx-platform=/Users/kaidev99/Work/funix-soft/lms/standard/edx-platform /Users/kaidev99/Library/Application Support/tutor/env/build/openedx

what is problem?

Hello, Did you get any solution I’m facing the same error?

Indeed, this error plagues yet another.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.