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

Front-end npm installation issue #500

Closed
JordanSimba opened this issue Dec 16, 2019 · 4 comments
Closed

Front-end npm installation issue #500

JordanSimba opened this issue Dec 16, 2019 · 4 comments
Labels
question Further information is requested

Comments

@JordanSimba
Copy link

JordanSimba commented Dec 16, 2019

When running npm install inside 'frontend' docker file, error occurs.
Running with production docker-compose

How to reproduce the problem

$docker pull node:13.1.0

$docker run -it -v ./frontent:/app --entrypoint bash node:13.1.0

root@ac4c6f3a1914:/app# npm install
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 140.82.118.3]: errno=Connection refused
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T15_01_20_133Z-debug.log

OR run

root@ac4c6f3a1914:/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.

What I've tried

To get circumvent this issue I've found that using

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

instead of the git 'protocol' works i.e.

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

However, I'm not sure how to implement a solution to this.
If it is not too difficult, I wouldn't mind a nudge in the right direction and putting up a PR if IT IS a real bug.

Environment

  • Operating System: windows 10
  • Python Version Used: Running in docker

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
  • When you install doccano: 16 Dec 2019
  • How did you install doccano (Heroku button etc): docker-compose (production)
@icoxfog417 icoxfog417 added the question Further information is requested label Dec 16, 2019
@icoxfog417
Copy link
Contributor

icoxfog417 commented Dec 16, 2019

Thank you for reporting the issue. It seems to yarn.lock issue that is generated automatically. We can't configure it is yarn bug or your environment (network etc) issue.

@JordanSimba
Copy link
Author

@icoxfog417 Have you been able to run this command successfully in your environment?

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

@JordanSimba
Copy link
Author

Sorry it was a firewall issue on my end.
I'll close the Issue!

@dvquy13
Copy link

dvquy13 commented Feb 24, 2021

Atm there is no URL git://github.com/adobe-webplatform/eve.git, instead we should access the https prefix. The solution is to change all git://github.com/adobe-webplatform/eve.git to https://github.com/adobe-webplatform/eve.git in doccano/frontend/yarn.lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants