Unitech / Unitech/pm2

npm install fails and it says "Could not resolve host: github.comUnitech"

Open
#5,181 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

What's going wrong?

It appears when I run the command "npm install" in a project which is dependent on pm2.

Supporting information

the log given below:

1386[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! Error while executing:
1387[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/Unitech/pm2.git
1388[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! 
1389[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! fatal: unable to access 'https://github.comUnitech/pm2.git/': Could not resolve host: github.comUnitech; Name or service not known
1390[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! 
1391[2021-09-22T16:26:25.892][CompileProject][INFO] npm ERR! exited with error code: 128
1392[2021-09-22T16:26:26.088][CompileProject][INFO] npm ERR! A complete log of this run can be found in:
1393[2021-09-22T16:26:26.088][CompileProject][INFO] npm ERR!     /root/.npm/_logs/2021-09-22T08_26_25_916Z-debug.log
1394[2021-09-22T16:26:26.112][CompileProject][INFO] ===== NPM Install Failure =====
1395[2021-09-22T16:26:26.112][CompileProject][INFO] ===== Run install.sh error: 1 =====

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by running npm install in a project dependent on pm2, then inspect the logged git URL and the install.sh step mentioned in the report. Done means the dependency installation no longer tries to resolve the malformed github.comUnitech host.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.