mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
234 stars 45 forks source link

Causes npm install to fail #40

Open rugk opened 5 years ago

rugk commented 5 years ago

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

mwittig commented 5 years ago

@rugk Which version of node.js are using?

rugk commented 5 years ago

v10.16.3

rugk commented 5 years ago

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

rugk commented 5 years ago

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 commented 4 years ago

ping?

fabe85 commented 4 years ago

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

rugk commented 4 years ago

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

sam-1994 commented 4 years ago

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 commented 4 years ago

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.