Hi.
I want to compile lora-app-server on windows 10 and I use Gnuwin32 for this. All commands are working but when I use make build
command,I have following error:
"Generating combined Swagger JSON" 'GOOS' is not recognized as an internal or external command, operable program or batch file. make: *** [static/swagger/api.swagger.json] Error 1
I have following message when use make requirements ui-requirements
echo “Installing development tools”
“Installing development tools”
go get -u github.com/golang/lint/golint
go get -u github.com/brocaar/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/brocaar/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/elazarl/go-bindata-assetfs/…
go get -u github.com/jteeuwen/go-bindata/…
go get -u github.com/kisielk/errcheck
go get -u github.com/smartystreets/goconvey
go get -u golang.org/x/tools/cmd/stringer
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/goreleaser/goreleaser
dep ensure -v
“Installing UI requirements”
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})up to date in 67.691s
When use make clean
:
- “Cleaning up workspace”
Finally when I use make build
,I have an error:
“Building ui”
new-ui@0.1.0 build C:\Users\MRT\go\src\github.com\brocaar\lora-app-server\ui
react-scripts buildCreating an optimized production build…
Compiled successfully.File sizes after gzip:
782.27 KB build\static\js\main.ef036079.js
9.79 KB build\static\css\main.1cf097fa.cssThe bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfbThe project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:“homepage” : “http://myname.github.io/myapp”,
The build folder is ready to be deployed.
You may serve it with a static server:npm install -g serve
serve -s buildFind out more about deployment here:
“Generating combined Swagger JSON”
‘GOOS’ is not recognized as an internal or external command,
operable program or batch file.
make: *** [static/swagger/api.swagger.json] Error 1
Does anyone have suggestion how I fix this?