bjdgyc/anylink

build error

changchichung opened this issue · 1 comments

build log

2023-07-17 17:47:51 [chchang@ny anylink  main ]$ NODE_OPTIONS=--openssl-legacy-provider bash build.sh
++ pwd
+ cpath=/home/chchang/git/anylink
+ echo 编译前端项目
编译前端项目
+ cd /home/chchang/git/anylink/web
+ yarn install --registry=https://registry.npmmirror.com
yarn install v1.22.19
error An unexpected error occurred: "Invalid value type 1479:0 in /home/chchang/git/anylink/web/yarn.lock".
info If you think this is a bug, please open a bug report with the information provided in "/home/chchang/git/anylink/web/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
+ yarn run build
yarn run v1.22.19
$ vue-cli-service build
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

⠦  Building for production...

 WARNING  Compiled with 2 warnings                                                                                    5:48:28 PM

 warning  

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  js/chunk-541d201c.84379cf1.js (856 KiB)
  js/chunk-vendors.175ed2e5.js (862 KiB)

 warning  

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  app (1.05 MiB)
      css/chunk-vendors.a16c4353.css
      js/chunk-vendors.175ed2e5.js
      css/app.9b7b16e4.css
      js/app.6a8508eb.js


  File                                  Size                                       Gzipped

  ui/js/chunk-vendors.175ed2e5.js       861.58 KiB                                 233.22 KiB
  ui/js/chunk-541d201c.84379cf1.js      856.21 KiB                                 294.80 KiB
  ui/js/chunk-6df4d23c.2f48d77e.js      33.87 KiB                                  10.98 KiB
  ui/js/chunk-277f1c52.cb1e48a7.js      25.47 KiB                                  8.27 KiB
  ui/js/chunk-161b7627.0b77c226.js      24.32 KiB                                  5.97 KiB
  ui/js/chunk-bb860a00.d413b1e2.js      13.34 KiB                                  3.41 KiB
  ui/js/chunk-d252dafa.79600cdf.js      12.57 KiB                                  3.58 KiB
  ui/js/chunk-2d237b05.f13eb472.js      10.70 KiB                                  3.28 KiB
  ui/js/app.6a8508eb.js                 7.74 KiB                                   3.05 KiB
  ui/js/chunk-2d21406d.97362539.js      5.51 KiB                                   1.90 KiB
  ui/js/chunk-a804a750.d08eb782.js      4.73 KiB                                   1.55 KiB
  ui/js/chunk-2d21f81f.9617e2f9.js      3.81 KiB                                   1.39 KiB
  ui/js/chunk-72f9f27c.0b711084.js      3.77 KiB                                   1.23 KiB
  ui/js/chunk-2d0af177.f2978d13.js      1.16 KiB                                   0.67 KiB
  ui/css/chunk-vendors.a16c4353.css     209.55 KiB                                 33.63 KiB
  ui/css/chunk-541d201c.ce9521d8.css    1.20 KiB                                   0.47 KiB
  ui/css/chunk-a804a750.11759a78.css    0.60 KiB                                   0.35 KiB
  ui/css/chunk-161b7627.49446a77.css    0.45 KiB                                   0.29 KiB
  ui/css/chunk-277f1c52.3d0b5da8.css    0.43 KiB                                   0.18 KiB
  ui/css/chunk-72f9f27c.5659f18d.css    0.38 KiB                                   0.16 KiB
  ui/css/app.9b7b16e4.css               0.36 KiB                                   0.26 KiB
  ui/css/chunk-6df4d23c.6d02de57.css    0.18 KiB                                   0.15 KiB
  ui/css/chunk-d252dafa.a458b20b.css    0.18 KiB                                   0.15 KiB
  ui/css/chunk-bb860a00.14e4886a.css    0.10 KiB                                   0.10 KiB

  Images and other types of assets omitted.

 DONE  Build complete. The ui directory is ready to be deployed.
 INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
      
Done in 16.84s.
+ RETVAL 0
+ rt=0
+ '[' 0 '!=' 0 ']'
+ echo 编译二进制文件
编译二进制文件
+ cd /home/chchang/git/anylink/server
+ rm -rf ui
+ cp -rf /home/chchang/git/anylink/web/ui .
+ export GOPROXY=https://goproxy.io
+ GOPROXY=https://goproxy.io
+ go mod tidy
go: go.mod file indicates go 1.19, but maximum version supported by tidy is 1.18
++ git rev-parse HEAD
+ go build -v -o anylink -ldflags '-X main.CommitId=9a6aaa87e5346c2ac932c327d7dfbae591799893'
go: downloading github.com/aliyun/alibaba-cloud-sdk-go v1.61.1755
../../../go/pkg/mod/github.com/go-acme/lego/v4@v4.10.2/providers/dns/alidns/alidns.go:9:2: github.com/aliyun/alibaba-cloud-sdk-go@v1.61.1755: stream error: stream ID 1; INTERNAL_ERROR; received from peer
../../../go/pkg/mod/github.com/go-acme/lego/v4@v4.10.2/providers/dns/alidns/alidns.go:10:2: github.com/aliyun/alibaba-cloud-sdk-go@v1.61.1755: stream error: stream ID 1; INTERNAL_ERROR; received from peer
../../../go/pkg/mod/github.com/go-acme/lego/v4@v4.10.2/providers/dns/alidns/alidns.go:11:2: github.com/aliyun/alibaba-cloud-sdk-go@v1.61.1755: stream error: stream ID 1; INTERNAL_ERROR; received from peer
../../../go/pkg/mod/github.com/go-acme/lego/v4@v4.10.2/providers/dns/alidns/alidns.go:12:2: github.com/aliyun/alibaba-cloud-sdk-go@v1.61.1755: stream error: stream ID 1; INTERNAL_ERROR; received from peer
../../../go/pkg/mod/github.com/go-acme/lego/v4@v4.10.2/providers/dns/alidns/alidns.go:13:2: github.com/aliyun/alibaba-cloud-sdk-go@v1.61.1755: stream error: stream ID 1; INTERNAL_ERROR; received from peer
+ RETVAL 1
+ rt=1
+ '[' 1 '!=' 0 ']'
+ echo 1
1
+ exit 1

這樣子應該是失敗了吧?請問該怎麼修正呢?

bjdgyc commented

如果网络没有限制,可以注释掉这一行
export GOPROXY=https://goproxy.io