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

Causes npm install to fail #40

Open
rugk opened this issue Sep 9, 2019 · 9 comments
Open

Causes npm install to fail #40

rugk opened this issue Sep 9, 2019 · 9 comments

Comments

@rugk
Copy link

rugk commented Sep 9, 2019

With this module included as a dev dependency, I get these errors:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/mwittig/license-checker.git
npm ERR! 
npm ERR! fatal: Kein Git-Repository: /home/dev/Downloads/awesome-emoji-picker-1.1-src/emoji-mart-embed/../../../../.git/modules/src/popup/lib/awesome-emoji-emoji-mart-embed
npm ERR! 
npm ERR! exited with error code: 128

or

$ npm install
npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules/npm-license-crawler/license-checker@git+https:/github.com/mwittig/license-checker.git#d546e3f738e14c62e732346fa355162d46700893" as it does not contain a package.json file.

For a full issue description, see rugk/emoji-mart-embed#4, potential solution: #39

@mwittig
Copy link
Owner

mwittig commented Sep 10, 2019

@rugk Which version of node.js are using?

@rugk
Copy link
Author

rugk commented Sep 10, 2019

v10.16.3

@rugk
Copy link
Author

rugk commented Sep 10, 2019

BTW "Kein Git-Repository:" means "No git repository:". And then there is this strange path with useless ..'s

@rugk
Copy link
Author

rugk commented Oct 9, 2019

Any news? @mwittig

The problem is, add-on reviewers from Mozilla (addons.mozilla.org) are putting up pressure here, because they cannot build the lib I use, because of this.

Note this is the same issue as #39

@rugk
Copy link
Author

rugk commented Dec 11, 2019

ping?

@fabe85
Copy link

fabe85 commented Dec 31, 2019

Any news or updates? Is there a workaround? @rugk @mwittig

@rugk
Copy link
Author

rugk commented Dec 31, 2019

A workaround is to remove this module from your dev dependencies (in packages.json) and install it manually, only if needed.

@sam-1994
Copy link

sam-1994 commented Jan 9, 2020

I just had a similar problem when git was not installed in a docker container.

The cause was that the dependency to the licence-checker is a git link:
image

The solution was to install git in the container

@MehdiRaza1998
Copy link

Solved! Installed git, opened GIT CMD and navigated to my project by cd command. Then run the command of installing it. Simple cmd was not able to install this git based library. My path wasn't set too. Maybe that's the reason I was getting this error.

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

No branches or pull requests

5 participants