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

NPM has problems with installing package due to git dependency #24

Open
pzmarzly opened this issue Oct 10, 2018 · 2 comments
Open

NPM has problems with installing package due to git dependency #24

pzmarzly opened this issue Oct 10, 2018 · 2 comments

Comments

@pzmarzly
Copy link
Contributor

~/uniread on master ⨯ sudo npm install -g
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b zipread https://github.com/nemanjan00/epub.git /root/.npm/_cacache/tmp/git-clone-257f0870
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-257f0870': Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-10-10T14_45_47_348Z-debug.log

Manjaro, latest npm

Suffix 257f0870 is random every time.

Either NPM or Git is dropping privileges, while preventing me to set permissive flags on _cacache (chmod 777).

Possible solutions

  1. Put contents of https://github.com/nemanjan00/epub/tree/zipread to a seperate repo.
  2. Use "epub": "nemanjan00/epub#zipread", which seems to work for some strange reason, but is a bit undocumented, and may be insecure if julien-c has push privilege to that branch.
  3. Use "epub": "^1.1.0", but I haven't checked if its licensing issues have been resolved.
@pzmarzly
Copy link
Contributor Author

Now I cannot reproduce solution 2 working... I guess I will never understand NPM.

@nemanjan00
Copy link
Owner

They did not solve licensing problems yet...

I did send PR.

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

2 participants