nom install problrm in angular app when i try to dockerise a project

Discussão em 'Angular' iniciado por Mohamed Aziz Jnayah, Fevereiro 3, 2025.

  1. => ERROR [build 4/6] RUN npm install 645.0s


    [build 4/6] RUN npm install: 603.7 npm warn deprecated gauge@3.0.2: This package is no longer supported. 603.7 npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. 603.7 npm warn deprecated npmlog@5.0.1: This package is no longer supported. 606.6 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. 606.7 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported 606.9 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported 644.9 npm error code 1 644.9 npm error path /app/node_modules/canvas 644.9 npm error command failed 644.9 npm error command sh -c node-pre-gyp install --fallback-to-build --update-binary 644.9 npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/app/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) 644.9 npm error node-pre-gyp info it worked if it ends with ok 644.9 npm error node-pre-gyp info using node-pre-gyp@1.0.11 644.9 npm error node-pre-gyp info using node@20.18.2 | linux | x64 644.9 npm error node-pre-gyp http GET https://github.com/Automattic/node-...anvas-v2.11.2-node-v115-linux-musl-x64.tar.gz 644.9 npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-...anvas-v2.11.2-node-v115-linux-musl-x64.tar.gz 644.9 npm error node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@20.18.2 (node-v115 ABI, musl) (falling back to source compile with node-gyp) 644.9 npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-...anvas-v2.11.2-node-v115-linux-musl-x64.tar.gz 644.9 npm error gyp info it worked if it ends with ok 644.9 npm error gyp info using node-gyp@10.1.0 644.9 npm error gyp info using node@20.18.2 | linux | x64 644.9 npm error gyp info ok 644.9 npm error gyp info it worked if it ends with ok 644.9 npm error gyp info using node-gyp@10.1.0 644.9 npm error gyp info using node@20.18.2 | linux | x64 644.9 npm error gyp ERR! find Python 644.9 npm error gyp ERR! find Python Python is not set from command line or npm configuration 644.9 npm error gyp ERR! find Python Python is not set from environment variable PYTHON 644.9 npm error gyp ERR! find Python checking if "python3" can be used 644.9 npm error gyp ERR! find Python - executable path is "" 644.9 npm error gyp ERR! find Python - "" could not be run 644.9 npm error gyp ERR! find Python checking if "python" can be used 644.9 npm error gyp ERR! find Python - executable path is "" 644.9 npm error gyp ERR! find Python - "" could not be run 644.9 npm error gyp ERR! find Python 644.9 npm error gyp ERR! find Python ********************************************************** 644.9 npm error gyp ERR! find Python You need to install the latest version of Python. 644.9 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not, 644.9 npm error gyp ERR! find Python you can try one of the following options: 644.9 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" 644.9 npm error gyp ERR! find Python (accepted by both node-gyp and npm) 644.9 npm error gyp ERR! find Python - Set the environment variable PYTHON 644.9 npm error gyp ERR! find Python - Set the npm configuration variable python: 644.9 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable" 644.9 npm error gyp ERR! find Python For more information consult the documentation at: 644.9 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation 644.9 npm error gyp ERR! find Python ********************************************************** 644.9 npm error gyp ERR! find Python 644.9 npm error gyp ERR! configure error 644.9 npm error gyp ERR! stack Error: Could not find any Python installation to use 644.9 npm error gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11) 644.9 npm error gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17)
    644.9 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 644.9 npm error gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18) 644.9 npm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18) 644.9 npm error gyp ERR! System Linux 5.15.167.4-microsoft-standard-WSL2 644.9 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/app/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/app/node_modules/canvas/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115" 644.9 npm error gyp ERR! cwd /app/node_modules/canvas 644.9 npm error gyp ERR! node -v v20.18.2 644.9 npm error gyp ERR! node-gyp -v v10.1.0 644.9 npm error gyp ERR! not ok 644.9 npm error node-pre-gyp ERR! build error 644.9 npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/app/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) 644.9 npm error node-pre-gyp ERR! stack at ChildProcess. (/app/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
    644.9 npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28) 644.9 npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1104:16) 644.9 npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) 644.9 npm error node-pre-gyp ERR! System Linux 5.15.167.4-microsoft-standard-WSL2 644.9 npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary" 644.9 npm error node-pre-gyp ERR! cwd /app/node_modules/canvas 644.9 npm error node-pre-gyp ERR! node -v v20.18.2 644.9 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11 644.9 npm error node-pre-gyp ERR! not ok 644.9 npm notice 644.9 npm notice New major version of npm available! 10.8.2 -> 11.1.0 644.9 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0 644.9 npm notice To update run: npm install -g npm@11.1.0 644.9 npm notice 644.9 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-03T22_22_42_136Z-debug-0.log
    ​
    dockerfile:5

    3 | WORKDIR /app 4 | COPY package.json ./ 5 | >>> RUN npm install 6 | COPY . . 7 | RUN npm run build --pro



    ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1

    i try RUN npm install --legacy-peer-deps nopm install --force i use angular 18 update angular to be 19

    Continue reading...

Compartilhe esta Página