Beim Ausführen von npm install in der Docker-Datei 'frontend' tritt ein Fehler auf.
Ausführung mit Produktion docker-compose
So reproduzieren Sie das Problem
$docker pull node:13.1.0
$docker run -it -v ./frontent:/app --entrypoint bash node:13.1.0
``` root@container :/app# npm install
root@ac4c6f3a1914 :/app# npm install
npm WARN veraltet [email protected] : core-js@<3 wird nicht mehr gepflegt und aufgrund der Anzahl der Probleme nicht zur Verwendung empfohlen. Bitte aktualisieren Sie Ihre Abhängigkeiten auf die aktuelle Version von core-js@3.
npm WARN veraltet [email protected] : Verwenden Sie String.prototype.padStart()
npm ERR! Fehler beim Ausführen:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: Verbindung zu github.com nicht möglich:
npm ERR! github.com[0: 140.82.118.3]: errno=Verbindung verweigert
npm ERR!
npm ERR!
npm ERR! mit Fehlercode verlassen: 128
npm ERR! Ein vollständiges Protokoll dieses Laufs finden Sie in:
npm ERR! /root/.npm/_logs/2019-12-16T15_01_20_133Z-debug.log
OR run
``` root<strong i="33">@container</strong>:/app# yarn install
root<strong i="34">@ac4c6f3a1914</strong>:/app# npm install
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: /app
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.118.3]: errno=Connection refused
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Um dieses Problem zu umgehen, habe ich festgestellt, dass mit
https://github.com/adobe-webplatform/eve.git
anstelle des git 'Protokoll' funktioniert zB
git://github.com/adobe-webplatform/eve.git
Ich bin mir jedoch nicht sicher, wie ich eine Lösung dafür implementieren soll.
Wenn es nicht zu schwierig ist, hätte ich nichts dagegen, in die richtige Richtung zu schubsen und eine PR zu veröffentlichen, wenn ES ein echter Fehler ist.
Docker-Info:
Client:
Debug Mode: false
Server:
Containers: 44
Running: 2
Paused: 0
Stopped: 42
Images: 60
Server Version: 19.03.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.184-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.855GiB
Name: docker-desktop
ID: xxxx-xxxx-xxxx-xxx-xxxx-xxx-xxx
Docker Root Dir: /var/lib/docker
Debug Mode: true
File Descriptors: 51
Goroutines: 66
System Time: 2019-12-16T15:22:47.5637998Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Vielen Dank, dass Sie das Problem gemeldet haben. Es scheint ein yarn.lock
Problem zu sein, das automatisch generiert wird. Wir können nicht konfigurieren, dass es sich um einen yarn
Bug oder ein Problem mit Ihrer Umgebung (Netzwerk usw.) handelt.
@icoxfog417 Konnten Sie diesen Befehl erfolgreich in Ihrer Umgebung ausführen?
git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
Entschuldigung, es war ein Firewall-Problem auf meiner Seite.
Ich schließe die Ausgabe!
Atm gibt es keine URL git://github.com/adobe-webplatform/eve.git
, stattdessen sollten wir auf das Präfix https
zugreifen. Die Lösung besteht darin, alle git://github.com/adobe-webplatform/eve.git
in https://github.com/adobe-webplatform/eve.git
in doccano/frontend/yarn.lock
https://github.com/adobe-webplatform/eve.git
zu ändern.
Hilfreichster Kommentar
Entschuldigung, es war ein Firewall-Problem auf meiner Seite.
Ich schließe die Ausgabe!