Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running step 6 (docker compose up nitro --build -d) #6

Open
duduws opened this issue Jul 24, 2024 · 0 comments
Open

Error when running step 6 (docker compose up nitro --build -d) #6

duduws opened this issue Jul 24, 2024 · 0 comments

Comments

@duduws
Copy link

duduws commented Jul 24, 2024

root@ddw-wings:/home/ubuntu/nitro-docker# docker compose up nitro --build -d
WARN[0000] /home/ubuntu/nitro-docker/compose.yaml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Building 22.1s (11/14) docker:default
=> [nitro internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [nitro internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [nitro internal] load metadata for docker.io/library/nginx:alpine 0.0s
=> [nitro internal] load metadata for docker.io/library/node:lts-alpine 0.9s
=> CACHED [nitro stage-1 1/2] FROM docker.io/library/nginx:alpine 0.0s
=> [nitro builder 1/8] FROM docker.io/library/node:lts-alpine@sha256:4795fa9fb72c020aee849a794a35b9a0aaeb7b4f0cd2a4f00fac096a7da85195 0.0s
=> CACHED [nitro builder 2/8] WORKDIR /build 0.0s
=> CACHED [nitro builder 3/8] RUN apk add --no-cache git 0.0s
=> CACHED [nitro builder 4/8] RUN git clone --branch main --recurse-submodules https://github.com/Gurkengewuerz/nitro.git . 0.0s
=> CACHED [nitro builder 5/8] RUN git checkout 1666e35 0.0s
=> ERROR [nitro builder 6/8] RUN npm install --force 21.1s

[nitro builder 6/8] RUN npm install --force:
0.829 npm warn using --force Recommended protections disabled.
6.097 npm warn deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
20.62 npm error code 1
20.62 npm error path /build/node_modules/@parcel/watcher
20.62 npm error command failed
20.62 npm error command sh -c node-gyp-build
20.62 npm error gyp info it worked if it ends with ok
20.62 npm error gyp info using node-gyp@10.1.0
20.62 npm error gyp info using node@20.16.0 | linux | arm64
20.62 npm error gyp ERR! find Python
20.62 npm error gyp ERR! find Python Python is not set from command line or npm configuration
20.62 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
20.62 npm error gyp ERR! find Python checking if "python3" can be used
20.62 npm error gyp ERR! find Python - executable path is ""
20.62 npm error gyp ERR! find Python - "" could not be run
20.62 npm error gyp ERR! find Python checking if "python" can be used
20.62 npm error gyp ERR! find Python - executable path is ""
20.62 npm error gyp ERR! find Python - "" could not be run
20.62 npm error gyp ERR! find Python
20.62 npm error gyp ERR! find Python **********************************************************
20.62 npm error gyp ERR! find Python You need to install the latest version of Python.
20.62 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
20.62 npm error gyp ERR! find Python you can try one of the following options:
20.62 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
20.62 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
20.62 npm error gyp ERR! find Python - Set the environment variable PYTHON
20.62 npm error gyp ERR! find Python - Set the npm configuration variable python:
20.62 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
20.62 npm error gyp ERR! find Python For more information consult the documentation at:
20.62 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
20.62 npm error gyp ERR! find Python **********************************************************
20.62 npm error gyp ERR! find Python
20.62 npm error gyp ERR! configure error
20.62 npm error gyp ERR! stack Error: Could not find any Python installation to use
20.62 npm error gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11)
20.62 npm error gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17)
20.62 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
20.62 npm error gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
20.62 npm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
20.62 npm error gyp ERR! System Linux 5.11.0-1028-oracle
20.62 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
20.62 npm error gyp ERR! cwd /build/node_modules/@parcel/watcher
20.62 npm error gyp ERR! node -v v20.16.0
20.62 npm error gyp ERR! node-gyp -v v10.1.0
20.62 npm error gyp ERR! not ok
20.62 npm notice
20.62 npm notice New patch version of npm available! 10.8.1 -> 10.8.2
20.62 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
20.62 npm notice To update run: npm install -g npm@10.8.2
20.62 npm notice
20.62 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-24T22_27_48_041Z-debug-0.log


failed to solve: executor failed running [/bin/sh -c npm install --force]: exit code: 1
root@ddw-wings:/home/ubuntu/nitro-docker#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant