-
Notifications
You must be signed in to change notification settings - Fork 575
Closed
Description
Description
Follow the instruction in README.md and run docker-compose -p dashboard up -d, but the command generated the errors as below:
// Omit unimportant logs and only start with building dashboard
Building dashboard
Step 1/12 : FROM node:12-alpine as builder
12-alpine: Pulling from library/node
cbdbe7a5bc2a: Already exists
bd07af9ed1a4: Pull complete
3556ccf180b2: Pull complete
089d4748da74: Pull complete
Digest: sha256:1660c1b9d3fd9711eb9936e66d4656954cd14b0d2b23a2185c39587dad0239b4
Status: Downloaded newer image for node:12-alpine
---> 057fa4cc38c2
Step 2/12 : WORKDIR /usr/src/app/
---> Running in c83d9788c67d
Removing intermediate container c83d9788c67d
---> 658572b1ee8f
Step 3/12 : USER root
---> Running in d2c3bdf79f5d
Removing intermediate container d2c3bdf79f5d
---> 94a7bea1874d
Step 4/12 : COPY package.json ./
---> 04ec0cce1eec
Step 5/12 : COPY yarn.lock ./
---> 1857ee122abc
Step 6/12 : RUN yarn
---> Running in 0d36248958a3
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
warning np@6.2.3: The engine "git" appears to be invalid.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @rjsf/antd@2.2.1" has unmet peer dependency "@babel/runtime-corejs2@^7.10.3".
warning " > @rjsf/antd@2.2.1" has unmet peer dependency "antd-dayjs-webpack-plugin@1.0.0".
warning " > @rjsf/antd@2.2.1" has unmet peer dependency "core-js@^2.5.7".
warning "@ant-design/pro-cli > @umijs/fabric > eslint-config-airbnb-base@13.2.0" has incorrect peer dependency "eslint@^4.19.1 || ^5.3.0".
warning "@ant-design/pro-cli > @umijs/fabric > eslint-config-airbnb-typescript > @typescript-eslint/parser@1.13.0" has incorrect peer dependency "eslint@^5.0.0".
warning "@ant-design/pro-cli > @umijs/fabric > eslint-config-airbnb-typescript > eslint-config-airbnb@17.1.1" has incorrect peer dependency "eslint@^4.19.1 || ^5.3.0".
warning "@umijs/plugin-blocks > @umijs/block-sdk > sylvanas > @umijs/fabric > @typescript-eslint/eslint-plugin@1.13.0" has incorrect peer dependency "@typescript-eslint/parser@^1.9.0".
warning "@umijs/plugin-esbuild > esbuild-webpack-plugin@1.0.0-beta.4" has unmet peer dependency "webpack@^4.0.0".
warning "@umijs/preset-react > @umijs/plugin-layout@0.11.4" has incorrect peer dependency "@ant-design/pro-layout@^5.0.0".
warning "@umijs/preset-react > @umijs/plugin-dva > babel-plugin-dva-hmr@0.4.2" has unmet peer dependency "redbox-react@1.x".
warning "@umijs/preset-react > @umijs/plugin-dva > dva-loading@3.0.20" has unmet peer dependency "dva-core@^1.1.0 | ^1.5.0-0 | ^1.6.0-0".
warning "@umijs/preset-react > @umijs/plugin-dva > dva > connected-react-router@6.5.2" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
[5/5] Building fresh packages...
warning Error running install script for optional dependency: "/usr/src/app/node_modules/node-pty: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments:
Directory: /usr/src/app/node_modules/node-pty
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@12.18.2 | linux | x64
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if \"python\" can be used
gyp ERR! find Python - \"python\" is not in PATH or produced an error
gyp ERR! find Python checking if \"python2\" can be used
gyp ERR! find Python - \"python2\" is not in PATH or produced an error
gyp ERR! find Python checking if \"python3\" can be used
gyp ERR! find Python - \"python3\" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python=\"/path/to/pythonexecutable\"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python \"/path/to/pythonexecutable\"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:469:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Linux 4.19.76-linuxkit
gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /usr/src/app/node_modules/node-pty
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error /usr/src/app/node_modules/esbuild: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /usr/src/app/node_modules/esbuild
Output:
child_process.js:669
throw err;
^
Error: Command failed: npm install --silent --prefer-offline --no-audit --progress=false esbuild-linux-64@0.2.12
at checkExecSyncError (child_process.js:630:11)
at Object.execSync (child_process.js:666:15)
at installPackage (/usr/src/app/node_modules/esbuild/install.js:32:17)
at installOnUnix (/usr/src/app/node_modules/esbuild/install.js:41:14)
at Object.<anonymous> (/usr/src/app/node_modules/esbuild/install.js:72:3)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 92,
stdout: null,
stderr: null
}
ERROR: Service 'dashboard' failed to build: The command '/bin/sh -c yarn' returned a non-zero code: 1
Environment
- APISIX version:
apache/apisix:dev (sha256:ec3737445ae44efb9e5868a7462b10bd1296679cb5e2b56aceea134c8526e7aa) - APISIX-dashboard: latest
masterbranch (commit: b643585) - OS: macOS 10.15.5
- Docker: Docker Desktop Community v2.3.0.2
I guess the reason is that Python is missing in node:12-alpine which is the builder image.
Metadata
Metadata
Assignees
Labels
No labels