npm-license-crawler icon indicating copy to clipboard operation
npm-license-crawler copied to clipboard

Causes npm install to fail

Open rugk opened this issue 4 years ago • 9 comments

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 https://github.com/rugk/emoji-mart-embed/issues/4, potential solution: https://github.com/mwittig/npm-license-crawler/issues/39

rugk avatar Sep 09 '19 20:09 rugk

@rugk Which version of node.js are using?

mwittig avatar Sep 10 '19 13:09 mwittig

v10.16.3

rugk avatar Sep 10 '19 17:09 rugk

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

rugk avatar Sep 10 '19 17:09 rugk

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 https://github.com/mwittig/npm-license-crawler/issues/39

rugk avatar Oct 09 '19 16:10 rugk

ping?

rugk avatar Dec 11 '19 19:12 rugk

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

fabe85 avatar Dec 31 '19 09:12 fabe85

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

rugk avatar Dec 31 '19 18:12 rugk

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

sam-1994 avatar Jan 09 '20 10:01 sam-1994

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.

MehdiRaza1998 avatar May 04 '20 18:05 MehdiRaza1998