ztgoto commented on issue #702:
URL: 
https://github.com/apache/apisix-dashboard/issues/702#issuecomment-722779144


   @juzhiyuan  
我使用了分支v2.0根目录Dockerfile来构建镜像,虽然镜像成功构建,启动也正常。但构建过程中也有些错误(提示说可以忽略),最后还是没有web界面(404
 page not found) 我并不确定这个是不是由以下错误导致的
   启动日志
   ```
   #docker run --network=host --rm -v 
/etc/apisix-dashboard/conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml 
apisix-dashboard:2.0
   2020-11-06 02:48:11.124711 I | The Manager API is listening on 0.0.0.0:8999
   ```
   
   构建日志
   ```
   Step 19/31 : RUN yarn install
    ---> Running in 831d7574888f
   yarn install v1.22.5
   [1/5] Validating package.json...
   [2/5] Resolving packages...
   [3/5] Fetching packages...
   info [email protected]: The platform "linux" is incompatible with this module.
   info "[email protected]" is an optional dependency and failed compatibility 
check. Excluding it from installation.
   info [email protected]: The platform "linux" is incompatible with this module.
   info "[email protected]" is an optional dependency and failed compatibility 
check. Excluding it from installation.
   [4/5] Linking dependencies...
   warning "@api7-dashboard/plugin > @rjsf/[email protected]" has unmet peer 
dependency "@babel/runtime-corejs2@^7.10.3".
   warning "@api7-dashboard/plugin > @rjsf/[email protected]" has unmet peer 
dependency "[email protected]".
   warning "@api7-dashboard/plugin > @rjsf/[email protected]" has unmet peer 
dependency "core-js@^2.5.7".
   warning "@api7-dashboard/plugin > @uiw/[email protected]" has unmet 
peer dependency "@babel/runtime@>=7.11.0".
   warning "@api7-dashboard/plugin > @uiw/[email protected]" has unmet 
peer dependency "codemirror@>=5.49.2".
   warning "@api7-dashboard/pluginchart > [email protected]" has unmet 
peer dependency "react-is@>= 16.8.0".
   warning "@api7-dashboard/pluginchart > @mrblenny/react-flow-chart > 
[email protected]" has unmet peer dependency "prop-types@^15.5.4".
   warning " > @rjsf/[email protected]" has unmet peer dependency 
"@babel/runtime-corejs2@^7.10.3".
   warning " > @rjsf/[email protected]" has unmet peer dependency 
"[email protected]".
   warning " > @rjsf/[email protected]" has unmet peer dependency "core-js@^2.5.7".
   warning "@ant-design/pro-cli > @umijs/fabric > 
@typescript-eslint/[email protected]" has unmet peer dependency 
"@typescript-eslint/parser@^3.0.0".
   warning "@umijs/plugin-blocks > @umijs/block-sdk > sylvanas > @umijs/fabric 
> @typescript-eslint/[email protected]" has incorrect peer dependency 
"@typescript-eslint/parser@^1.9.0".
   warning "@umijs/plugin-blocks > @umijs/block-sdk > sylvanas > @umijs/fabric 
> [email protected]" has incorrect peer dependency 
"eslint-plugin-react@^7.14.2".
   warning "@umijs/plugin-esbuild > [email protected]" has unmet 
peer dependency "webpack@^4.0.0".
   warning "@umijs/preset-react > @umijs/[email protected]" has incorrect 
peer dependency "@ant-design/pro-layout@^5.0.0".
   warning "@umijs/preset-react > @umijs/plugin-dva > 
[email protected]" has unmet peer dependency "[email protected]".
   warning "@umijs/preset-react > @umijs/plugin-dva > [email protected]" 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 > 
[email protected]" 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/local/apisix-dashboard/web/node_modules/node-pty: Command failed.
   Exit code: 1
   Command: node scripts/install.js
   Arguments:
   Directory: /usr/local/apisix-dashboard/web/node_modules/node-pty
   Output:
   gyp info it worked if it ends with ok
   gyp info using [email protected]
   gyp info using [email protected] | 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:315:5)
   gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:327:5)
   gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:275:12)
   gyp ERR! stack     at onErrorNT (internal/child_process.js:465:16)
   gyp ERR! stack     at processTicksAndRejections 
(internal/process/task_queues.js:80:21)
   gyp ERR! System Linux 4.19.104-microsoft-standard
   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/local/apisix-dashboard/web/node_modules/node-pty
   gyp ERR! node -v v14.15.0
   gyp ERR! node-gyp -v v5.1.0
   gyp ERR! not ok"
   info This module is OPTIONAL, you can safely ignore this error
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to