-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Bonjour,
Je rencontre un soucis concernant l'installation de MyWebClient.
Si la récupération du projet c'est bien passé, la construction de l'image sur Docker pose un problème.
Lorsque je rentre la commande suivante docker build -t mwiclient:1.0 . dans mon dossier MyWebClient, je reçois le message suivant :
> [4/5] RUN yarn install:
0.228 yarn install v1.22.4
0.274 [1/4] Resolving packages...
0.406 [2/4] Fetching packages...
8.560 info fsevents@2.3.2: The platform "linux" is incompatible with this module.
8.560 info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
8.564 [3/4] Linking dependencies...
11.14 [4/4] Building fresh packages...
12.01 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
12.01 error /app/node_modules/sqlite3: Command failed.
12.01 Exit code: 1
12.01 Command: node-pre-gyp install --fallback-to-build
12.01 Arguments:
12.01 Directory: /app/node_modules/sqlite3
12.01 Output:
12.01 node-pre-gyp info it worked if it ends with ok
12.01 node-pre-gyp info using node-pre-gyp@0.11.0
12.01 node-pre-gyp info using node@12.16.3 | linux | arm64
12.01 node-pre-gyp WARN Using request for node-pre-gyp https download
12.01 node-pre-gyp info check checked for "/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64/node_sqlite3.node" (not found)
12.01 node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v72-linux-arm64.tar.gz
12.01 node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v72-linux-arm64.tar.gz
12.01 node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v72-linux-arm64.tar.gz
12.01 node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@12.16.3 (node-v72 ABI, musl) (falling back to source compile with node-gyp)
12.01 node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v72-linux-arm64.tar.gz
12.01 gyp info it worked if it ends with ok
12.01 gyp info using node-gyp@7.1.2
12.01 gyp info using node@12.16.3 | linux | arm64
12.01 gyp info ok
12.01 gyp info it worked if it ends with ok
12.01 gyp info using node-gyp@7.1.2
12.01 gyp info using node@12.16.3 | linux | arm64
12.01 gyp ERR! find Python
12.01 gyp ERR! find Python Python is not set from command line or npm configuration
12.01 gyp ERR! find Python Python is not set from environment variable PYTHON
12.01 gyp ERR! find Python checking if "python3" can be used
12.01 gyp ERR! find Python - "python3" is not in PATH or produced an error
12.01 gyp ERR! find Python checking if "python" can be used
12.01 gyp ERR! find Python - "python" is not in PATH or produced an error
12.01 gyp ERR! find Python checking if "python2" can be used
12.01 gyp ERR! find Python - "python2" is not in PATH or produced an error
12.01 gyp ERR! find Python
12.01 gyp ERR! find Python **********************************************************
12.01 gyp ERR! find Python You need to install the latest version of Python.
12.01 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
12.01 gyp ERR! find Python you can try one of the following options:
12.01 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
12.01 gyp ERR! find Python (accepted by both node-gyp and npm)
12.01 gyp ERR! find Python - Set the environment variable PYTHON
12.01 gyp ERR! find Python - Set the npm configuration variable python:
12.01 gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
12.01 gyp ERR! find Python For more information consult the documentation at:
12.01 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
12.01 gyp ERR! find Python **********************************************************
12.01 gyp ERR! find Python
12.01 gyp ERR! configure error
12.01 gyp ERR! stack Error: Could not find any Python installation to use
12.01 gyp ERR! stack at PythonFinder.fail (/app/node_modules/node-gyp/lib/find-python.js:302:47)
12.01 gyp ERR! stack at PythonFinder.runChecks (/app/node_modules/node-gyp/lib/find-python.js:136:21)
12.01 gyp ERR! stack at PythonFinder.<anonymous> (/app/node_modules/node-gyp/lib/find-python.js:179:16)
12.01 gyp ERR! stack at PythonFinder.execFileCallback (/app/node_modules/node-gyp/lib/find-python.js:266:16)
12.01 gyp ERR! stack at exithandler (child_process.js:310:5)
12.01 gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
12.01 gyp ERR! stack at ChildProcess.emit (events.js:310:20)
12.01 gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
12.01 gyp ERR! stack at onErrorNT (internal/child_process.js:469:16)
12.01 gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
12.01 gyp ERR! System Linux 6.10.4-linuxkit
12.01 gyp ERR! command "/usr/local/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
12.01 gyp ERR! cwd /app/node_modules/sqlite3
12.01 gyp ERR! node -v v12.16.3
12.01 gyp ERR! node-gyp -v v7.1.2
12.01 gyp ERR! not ok
12.01 node-pre-gyp ERR! build error
12.01 node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
12.01 node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
12.01 node-pre-gyp ERR! stack at ChildProcess.emit (events.js:310:20)
12.01 node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
12.01 node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
12.01 node-pre-gyp ERR! System Linux 6.10.4-linuxkit
12.01 node-pre-gyp ERR! command "/usr/local/bin/node" "/app/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
12.01 node-pre-gyp ERR! cwd /app/node_modules/sqlite3
12.01 node-pre-gyp ERR! node -v v12.16.3
12.01 node-pre-gyp ERR! node-pre-gyp -v v0.11.0
12.01 node-pre-gyp ERR! not ok
12.01 Failed to execute '/usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/node_modules/sqlite3/lib/binding/node-v72-linux-arm64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
------
Dockerfile:6
--------------------
4 |
5 | COPY . .
6 | >>> RUN yarn install
7 | # Check package.json for postinstall scripts
8 |
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/ncjzzz2t6mn5ymxtvyqf7zzrh
Merci d'avance
Metadata
Metadata
Assignees
Labels
No labels