Doccano: フロントエンドのnpmインストールの問題

作成日 2019年12月16日  ·  4コメント  ·  ソース: doccano/doccano

'frontend'dockerファイル内でnpminstallを実行すると、エラーが発生します。
本番Dockerで実行-compose

問題を再現する方法

$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警告非推奨の[email protected] :core-js @ <3は保守されなくなり、問題の数が多いため、使用をお勧めしません。 依存関係を実際のバージョンのcore-js @ 3にアップグレードしてください
npm警告は非推奨になりました[email protected] :String.prototype.padStart()を使用してください
npm ERR! 実行中のエラー:
npm ERR! / usr / bin / git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! 致命的:github.comに接続できません:
npm ERR! github.com [0:140.82.118.3]:errno =接続が拒否されました
npm ERR!
npm ERR!
npm ERR! エラーコードで終了しました:128

npm ERR! この実行の完全なログは、次の場所にあります。
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.

私が試したこと

この問題を回避するために、

https://github.com/adobe-webplatform/eve.git

gitの代わりに「プロトコル」が機能します。

git://github.com/adobe-webplatform/eve.git

ただし、これに対するソリューションを実装する方法がわかりません。
それはあまりにも難しいことではない場合、私は正しい方向にナッジを気にしないだろうし、それは本当である場合にPRを置きます。

環境

  • オペレーティングシステム:Windows 10
  • 使用したPythonバージョン:dockerで実行

Docker情報:

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
  • doccanoをインストールする場合:2019年12月16日
  • doccano(Herokuボタンなど)をどのようにインストールしましたか:docker-compose(本番
question

最も参考になるコメント

申し訳ありませんが、私の側ではファイアウォールの問題でした。
号を閉じます!

全てのコメント4件

問題を報告していただきありがとうございます。 自動的に生成されるyarn.lock問題のようです。 yarnバグまたは環境(ネットワークなど)の問題であると構成することはできません。

@ icoxfog417ご使用の環境でこのコマンドを正常に実行できましたか?

git ls-remote -h -t git://github.com/adobe-webplatform/eve.git

申し訳ありませんが、私の側ではファイアウォールの問題でした。
号を閉じます!

AtmにはURL git://github.com/adobe-webplatform/eve.gitがありません。代わりに、 httpsプレフィックスにアクセスする必要があります。 解決策は、 doccano/frontend/yarn.lockすべてのgit://github.com/adobe-webplatform/eve.githttps://github.com/adobe-webplatform/eve.gitに変更することです。

このページは役に立ちましたか?
0 / 5 - 0 評価