0
Kubernetes version: v1.15.0
Installation method: kudeadm
Host OS: ubuntu 18.04
CNI and version: calico 3.8.0
Hello everyone,
After I configured the environment according to the requirements in https://github.com/kubernetes/dashboard/blob/master/docs/developer/getting-started.md, I got an error when using the "npm run build" command.
The error log that appears is as follows:
sgj@sgj:~/workspace/kubernetes/dashboard$ npm run build
> kubernetes-dashboard@2.0.0-beta1 build /home/sgj/workspace/kubernetes/dashboard
> ./aio/scripts/build.sh
> kubernetes-dashboard@2.0.0-beta1 postversion /home/sgj/workspace/kubernetes/dashboard
> node aio/scripts/version.js
Version v2.0.0-beta1-20-g45550dac9 saved to ../src/app/frontend/environments/version.ts
Building backend
[14:12:06] Requiring external module babel-register
[14:12:06] Using gulpfile ~/workspace/kubernetes/dashboard/gulpfile.babel.js
[14:12:06] Starting 'backend:prod'...
[14:12:06] Starting '<anonymous>'...
go: k8s.io/apiextensions-apiserver@v0.0.0-20190315093550-53c4693659ed: unrecognized import path "k8s.io/apiextensions-apiserver" (https fetch: Get https://k8s.io/apiextensions-apiserver?go-get=1: net/http: TLS handshake timeout)
go: k8s.io/utils@v0.0.0-20190607212802-c55fbcfc754a: unrecognized import path "k8s.io/utils" (https fetch: Get https://k8s.io/utils?go-get=1: net/http: TLS handshake timeout)
go: k8s.io/heapster@v1.5.4: unrecognized import path "k8s.io/heapster" (https fetch: Get https://k8s.io/heapster?go-get=1: net/http: TLS handshake timeout)
go: k8s.io/api@v0.0.0-20190620084959-7cf5895f2711: unrecognized import path "k8s.io/api" (https fetch: Get https://k8s.io/api?go-get=1: net/http: TLS handshake timeout)
go: k8s.io/client-go@v0.0.0-20190620085101-78d2af792bab: unrecognized import path "k8s.io/client-go" (https fetch: Get https://k8s.io/client-go?go-get=1: net/http: TLS handshake timeout)
go: k8s.io/apimachinery@v0.0.0-20190612205821-1799e75a0719: unrecognized import path "k8s.io/apimachinery" (https fetch: Get https://k8s.io/apimachinery?go-get=1: net/http: TLS handshake timeout)
go: error loading module requirements
[14:12:17] '<anonymous>' errored after 10 s
[14:12:17] Error: Go command error, code: 1
at ChildProcess.<anonymous> (/home/sgj/workspace/kubernetes/dashboard/aio/gulp/gocommand.js:148:23)
at ChildProcess.emit (events.js:203:13)
at ChildProcess.EventEmitter.emit (domain.js:494:23)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
[14:12:17] 'backend:prod' errored after 10 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kubernetes-dashboard@2.0.0-beta1 build: `./aio/scripts/build.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kubernetes-dashboard@2.0.0-beta1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sgj/.npm/_logs/2019-07-18T06_12_17_232Z-debug.log
The reason for the error is because there is no file to get to k8s.io, is there any way to solve it? Thank you.
Please use proper formatting when asking or answering questions. – Daniel B – 2019-07-18T06:51:36.307