Error in dev environment


#1

Hello, I’m setting up the dev environment on my MacBook. I followed the contribution guide, and seems to got concourse running. But when I tried to open UI “http://localhost:8080/”, I got error from concourse console:

web_1     | 2019/01/22 02:40:17 http: panic serving 172.18.0.1:52404: template: index:8:18: executing "index" at <asset "main.css">: error calling asset: stat /src/web/public/main.css: no such file or directory
web_1     | goroutine 304 [running]:
web_1     | net/http.(conn).serve.func1(0xc0008f6320)
web_1     |     /usr/local/go/src/net/http/server.go:1746 +0x11e
web_1     | panic(0x20d8d80, 0xc0008464a0)
web_1     |     /usr/local/go/src/runtime/panic.go:513 +0x1e6
web_1     | code.cloudfoundry.org/lager.(logger).Fatal(0xc0008df140, 0x227e178, 0x18, 0x26df9a0, 0xc0008464a0, 0xc00016a250, 0x1, 0x1)
web_1     |     /go/pkg/mod/code.cloudfoundry.org/lager@v2.0.0+incompatible/logger.go:162 +0x7ba
web_1     | github.com/concourse/concourse/web/indexhandler.(*handler).ServeHTTP(0xc0005602c0, 0x26f9f80, 0xc0003eb540, 0xc000653800)
web_1     |     /src/web/indexhandler/handler.go:68 +0x346

What am I missing?


#2

I ran the following command, then solved the error:

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
cnpm install --save element-ui vue-resource
cnpm run build