Created
October 23, 2021 04:22
-
-
Save marvindanig/807d2226d90d99c41fc66c002046d0a8 to your computer and use it in GitHub Desktop.
nodegit install fails on docker node-16 stretch image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[+] Building 182.5s (13/15) | |
=> [internal] load build definition from Dockerfile.dev 0.0s | |
=> => transferring dockerfile: 960B 0.0s | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 35B 0.0s | |
=> [internal] load metadata for docker.io/library/node:17-stretch 0.5s | |
=> [auth] library/node:pull token for registry-1.docker.io 0.0s | |
=> [ 1/10] FROM docker.io/library/node:17-stretch@sha256:0c665077d2085e37933192b0c7be2617d4b0fcb028eb7a2d59f78b2a8e5f33ae 0.0s | |
=> [internal] load build context 0.0s | |
=> => transferring context: 26.90kB 0.0s | |
=> CACHED [ 2/10] WORKDIR /var/www/red.goose 0.0s | |
=> [ 3/10] RUN apt-get update && apt-get install -y imagemagick git 3.4s | |
=> [ 4/10] RUN apt-get install -y fonts-liberation gconf-service libappindicator1 libasound2 libatk1.0-0 libcairo2 16.9s | |
=> [ 5/10] COPY . . 0.4s | |
=> [ 6/10] RUN apt-get update || : && apt-get install python -y 1.9s | |
=> [ 7/10] RUN npm install -g [email protected] 6.9s | |
=> ERROR [ 8/10] RUN npm ci 152.4s | |
------ | |
> [ 8/10] RUN npm ci: | |
#12 1.613 npm WARN old lockfile | |
#12 1.614 npm WARN old lockfile The package-lock.json file was created with an old version of npm, | |
#12 1.614 npm WARN old lockfile so supplemental metadata must be fetched from the registry. | |
#12 1.614 npm WARN old lockfile | |
#12 1.615 npm WARN old lockfile This is a one-time fix-up, please be patient... | |
#12 1.615 npm WARN old lockfile | |
#12 32.27 npm WARN deprecated [email protected]: 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. | |
#12 37.60 npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 | |
#12 38.42 npm WARN deprecated [email protected]: this library is no longer supported | |
#12 38.77 npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash. | |
#12 48.46 npm WARN deprecated @babel/[email protected]: 🚨 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. | |
#12 53.58 npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future | |
#12 55.38 npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 | |
#12 60.38 npm WARN deprecated [email protected]: 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. | |
#12 151.9 npm ERR! code 1 | |
#12 151.9 npm ERR! path /var/www/red.goose/node_modules/nodegit | |
#12 151.9 npm ERR! command failed | |
#12 151.9 npm ERR! command sh -c node lifecycleScripts/preinstall && node lifecycleScripts/install | |
#12 151.9 npm ERR! [nodegit] Running pre-install script | |
#12 151.9 npm ERR! [nodegit] Running install script | |
#12 151.9 npm ERR! 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 --module=/var/www/red.goose/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/var/www/red.goose/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1) | |
#12 151.9 npm ERR! node-pre-gyp | |
#12 151.9 npm ERR! info it worked if it ends with ok | |
#12 151.9 npm ERR! node-pre-gyp info | |
#12 151.9 npm ERR! using [email protected] | |
#12 151.9 npm ERR! node-pre-gyp info using [email protected] | linux | x64 | |
#12 151.9 npm ERR! node-pre-gyp WARN | |
#12 151.9 npm ERR! Using request for node-pre-gyp https download | |
#12 151.9 npm ERR! node-pre-gyp info check checked for "/var/www/red.goose/node_modules/nodegit/build/Release/nodegit.node" (not found) | |
#12 151.9 npm ERR! node-pre-gyp http GET https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v102-linux-x64.tar.gz | |
#12 151.9 npm ERR! node-pre-gyp http 404 https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v102-linux-x64.tar.gz | |
#12 151.9 npm ERR! node-pre-gyp WARN Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v102-linux-x64.tar.gz | |
#12 151.9 npm ERR! node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v102 ABI, glibc) (falling back to source compile with node-gyp) | |
#12 151.9 npm ERR! node-pre-gyp http 404 status code downloading tarball https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v102-linux-x64.tar.gz | |
#12 151.9 npm ERR! | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! info it worked if it ends with ok | |
#12 151.9 npm ERR! gyp info | |
#12 151.9 npm ERR! using [email protected] | |
#12 151.9 npm ERR! gyp info using | |
#12 151.9 npm ERR! [email protected] | linux | x64 | |
#12 151.9 npm ERR! gyp info | |
#12 151.9 npm ERR! ok | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! info | |
#12 151.9 npm ERR! it worked if it ends with ok | |
#12 151.9 npm ERR! gyp info | |
#12 151.9 npm ERR! using [email protected] | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! info using [email protected] | linux | x64 | |
#12 151.9 npm ERR! gyp ERR! | |
#12 151.9 npm ERR! find Python | |
#12 151.9 npm ERR! gyp ERR! find Python | |
#12 151.9 npm ERR! Python is not set from command line or npm configuration | |
#12 151.9 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON | |
#12 151.9 npm ERR! gyp ERR! find Python checking if "python3" can be used | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! find Python - executable path is "/usr/bin/python3" | |
#12 151.9 npm ERR! gyp ERR! find Python | |
#12 151.9 npm ERR! - version is "3.5.3" | |
#12 151.9 npm ERR! gyp ERR! | |
#12 151.9 npm ERR! find Python - version is 3.5.3 - should be >=3.6.0 | |
#12 151.9 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED | |
#12 151.9 npm ERR! gyp ERR! find Python checking if "python" can be used | |
#12 151.9 npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python" | |
#12 151.9 npm ERR! gyp ERR! find Python - version is "2.7.13" | |
#12 151.9 npm ERR! gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0 | |
#12 151.9 npm ERR! gyp ERR! | |
#12 151.9 npm ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED | |
#12 151.9 npm ERR! gyp ERR! find Python | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! find Python ********************************************************** | |
#12 151.9 npm ERR! gyp ERR! | |
#12 151.9 npm ERR! find Python You need to install the latest version of Python. | |
#12 151.9 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, | |
#12 151.9 npm ERR! gyp ERR! find Python you can try one of the following options: | |
#12 151.9 npm ERR! gyp ERR! find Python | |
#12 151.9 npm ERR! - Use the switch --python="/path/to/pythonexecutable" | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! find Python (accepted by both node-gyp and npm) | |
#12 151.9 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON | |
#12 151.9 npm ERR! gyp ERR! find Python - Set the npm configuration variable python: | |
#12 151.9 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" | |
#12 151.9 npm ERR! gyp ERR! find Python For more information consult the documentation at: | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! | |
#12 151.9 npm ERR! find Python https://github.com/nodejs/node-gyp#installation | |
#12 151.9 npm ERR! gyp ERR! find Python ********************************************************** | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! find Python | |
#12 151.9 npm ERR! gyp ERR! configure error | |
#12 151.9 npm ERR! gyp ERR! stack | |
#12 151.9 npm ERR! Error: Could not find any Python installation to use | |
#12 151.9 npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) | |
#12 151.9 npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) | |
#12 151.9 npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16) | |
#12 151.9 npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7) | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! stack at ChildProcess.exithandler (node:child_process:388:7) | |
#12 151.9 npm ERR! gyp ERR! stack | |
#12 151.9 npm ERR! at ChildProcess.emit (node:events:390:28) | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! stack at maybeClose (node:internal/child_process:1062:16) | |
#12 151.9 npm ERR! gyp | |
#12 151.9 npm ERR! ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) | |
#12 151.9 npm ERR! gyp ERR! System Linux 5.10.47-linuxkit | |
#12 151.9 npm ERR! gyp ERR! command | |
#12 151.9 npm ERR! "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/var/www/red.goose/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/var/www/red.goose/node_modules/nodegit/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v102" | |
#12 151.9 npm ERR! gyp ERR! cwd /var/www/red.goose/node_modules/nodegit | |
#12 151.9 npm ERR! gyp ERR! node -v v17.0.1 | |
#12 151.9 npm ERR! gyp ERR! node-gyp -v v8.3.0 | |
#12 151.9 npm ERR! gyp ERR! not ok | |
#12 151.9 npm ERR! node-pre-gyp ERR! build error | |
#12 151.9 npm ERR! 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 --module=/var/www/red.goose/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/var/www/red.goose/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1) | |
#12 151.9 npm ERR! node-pre-gyp ERR! | |
#12 151.9 npm ERR! stack at ChildProcess.<anonymous> (/var/www/red.goose/node_modules/nodegit/node_modules/node-pre-gyp/lib/util/compile.js:83:29) | |
#12 151.9 npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28) | |
#12 151.9 npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1062:16) | |
#12 151.9 npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) | |
#12 151.9 npm ERR! node-pre-gyp ERR! System Linux 5.10.47-linuxkit | |
#12 151.9 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/var/www/red.goose/node_modules/nodegit/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" | |
#12 151.9 npm ERR! node-pre-gyp ERR! cwd /var/www/red.goose/node_modules/nodegit | |
#12 151.9 npm ERR! node-pre-gyp | |
#12 151.9 npm ERR! ERR! node -v v17.0.1 | |
#12 151.9 npm ERR! node-pre-gyp ERR! | |
#12 151.9 npm ERR! node-pre-gyp -v v0.13.0 | |
#12 151.9 npm ERR! node-pre-gyp | |
#12 151.9 npm ERR! ERR! not ok | |
#12 151.9 npm ERR! [nodegit] ERROR - Could not finish install | |
#12 151.9 npm ERR! [nodegit] ERROR - finished with error code: 1 | |
#12 152.2 | |
#12 152.2 npm ERR! A complete log of this run can be found in: | |
#12 152.2 npm ERR! /root/.npm/_logs/2021-10-23T04_09_10_178Z-debug.log | |
------ | |
executor failed running [/bin/sh -c npm ci]: exit code: 1 | |
make: *** [dev] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment