npm-license-crawler
npm-license-crawler copied to clipboard
Causes npm install to fail
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 Which version of node.js are using?
v10.16.3
BTW "Kein Git-Repository:" means "No git repository:". And then there is this strange path with useless ..
's
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
ping?
Any news or updates? Is there a workaround? @rugk @mwittig
A workaround is to remove this module from your dev dependencies (in packages.json
) and install it manually, only if needed.
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:
The solution was to install git in the container
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.