goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
69 stars 41 forks source link

error: failed to solve: executor failed running [/bin/sh -c npm install --unsafe-perm]: exit code: 1 #29

Closed samzong closed 1 year ago

samzong commented 2 years ago

its os & docker version on my vm

root@harbor:/mnt/harbor-arm# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"

root@harbor:/mnt/harbor-arm# docker version
Client: Docker Engine - Community
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:47:20 2022
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.14
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.15
  Git commit:       87a90dc
  Built:            Thu Mar 24 01:45:39 2022
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.5.11
  GitCommit:        3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

follow readme.md at last step: make build GOBUILDTAGS="include_oss include_gcs" BUILDBIN=true NOTARYFLAG=true TRIVYFLAG=true CHARTFLAG=true GEN_TLS=true PULL_BASE_FROM_DOCKERHUB=false

i got a error message

#17 [nodeportal 11/18] RUN npm install --unsafe-perm
^@^@^@^@^@^@^@#17 440.5 npm notice
#17 440.5 npm notice New major version of npm available! 7.0.15 -> 8.7.0
#17 440.5 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.7.0>
#17 440.5 npm notice Run `npm install -g npm@8.7.0` to update!
#17 440.5 npm notice
#17 440.6 npm ERR! code ERR_SOCKET_TIMEOUT
#17 440.6 npm ERR! errno ERR_SOCKET_TIMEOUT
#17 440.6 npm ERR! request to https://registry.npmjs.org/karma-coverage/-/karma-coverage-2.0.3.tgz failed, reason: Socket timeout
#17 447.1
#17 447.1 npm ERR! A complete log of this run can be found in:
#17 447.1 npm ERR!     /root/.npm/_logs/2022-04-22T01_57_00_555Z-debug.log
#17 ERROR: executor failed running [/bin/sh -c npm install --unsafe-perm]: exit code: 1
------
 > [nodeportal 11/18] RUN npm install --unsafe-perm:
#17 440.5 npm notice New major version of npm available! 7.0.15 -> 8.7.0
#17 440.5 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.7.0>
#17 440.5 npm notice Run `npm install -g npm@8.7.0` to update!
#17 440.5 npm notice
#17 440.6 npm ERR! code ERR_SOCKET_TIMEOUT
#17 440.6 npm ERR! errno ERR_SOCKET_TIMEOUT
#17 440.6 npm ERR! request to https://registry.npmjs.org/karma-coverage/-/karma-coverage-2.0.3.tgz failed, reason: Socket timeout
#17 447.1
#17 447.1 npm ERR! A complete log of this run can be found in:
#17 447.1 npm ERR!     /root/.npm/_logs/2022-04-22T01_57_00_555Z-debug.log
------
error: failed to solve: executor failed running [/bin/sh -c npm install --unsafe-perm]: exit code: 1
make[2]: *** [/mnt/harbor-arm/src/github.com/goharbor/harbor/make/photon/Makefile:142: _build_portal] Error 1
make[2]: Leaving directory '/mnt/harbor-arm/src/github.com/goharbor/harbor'
make[1]: *** [Makefile:419: build] Error 2
make[1]: Leaving directory '/mnt/harbor-arm/src/github.com/goharbor/harbor'
make: *** [Makefile:190: build] Error 2

can i get any help ? thanks a lot

liuxiaodong100 commented 1 year ago

Network issue

fengjian1585 commented 1 year ago

解决了吧