Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 部署出错 (安装 nej 时 ) #9

Closed
lilywang711 opened this issue Apr 29, 2020 · 2 comments
Closed

docker 部署出错 (安装 nej 时 ) #9

lilywang711 opened this issue Apr 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@lilywang711
Copy link

lilywang711 commented Apr 29, 2020

Bug 描述
精简的 Bug 描述。
The command '/bin/sh -c npm install nej -g' returned a non-zero code: 1
重现步骤

  1. docker-compose up -d
  2. bug 重现

期望结果
精简的期望描述。
期望能通过 docker 部署成功
截图
有截图就是最好的。
image

软件环境

  • 操作系统及版本:
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04 LTS
    Release: 20.04
    Codename: focal
  • Node及版本: 无需
  • 浏览器及版本: 无需

其他信息
其他信息可以填这里。
单独安装 nej 时也会报以下错误
image

@lilywang711 lilywang711 added the bug Something isn't working label Apr 29, 2020
@int64ago
Copy link
Contributor

这个就单纯的 npm 安装校验问题,我们这边无法复现,不过看了下这个问题还比较多,你可以尝试

https://stackoverflow.com/questions/47545940/when-i-run-npm-install-it-returns-with-err-code-eintegrity-npm-5-3-0

里说的

npm cache verify (需要写到 Dockerfile 里)

当然,也可能是淘宝源的问题,可以尝试去掉淘宝源的设置

@lilywang711
Copy link
Author

果然,是淘宝源的问题,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants