Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

npm WARN node-fetch@2.6.9 requires a peer of encoding@^0.1.0 but none was installed. #1

Open
ZacharieALES opened this issue May 3, 2023 · 1 comment

Comments

@ZacharieALES
Copy link

ZacharieALES commented May 3, 2023

Hello,

The command:
npm install -g acsm-to-epub
returns the error
Error: EACCES: permission denied, access '/usr/local/lib'

I ran this command with "sudo" to solve the problem but I got this new error:
npm WARN node-fetch@2.6.9 requires a peer of encoding@^0.1.0 but none was installed.

I read on stackoverflow that it should be solved by the command
npm install --save-dev "encoding@^0.1.0"
but it returned instead:

npm WARN saveError ENOENT: no such file or directory, open '/home/user/myfolder/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/user/myfolder/package.json'
npm WARN myfolder No description
npm WARN myfolder No repository field.
npm WARN myfolder No README data
npm WARN myfolder No license field.

Any idea how I could make it work?

@DrSkunk
Copy link
Owner

DrSkunk commented Jun 4, 2023

Hi!
What's your node.js version? And on which platform?
I just tested this on a fresh Ubuntu install with the latest LTS installed, Node v18.16.0, and that doesn't give the error.

But since the Knock binary isn't available anymore, this repository will also not work anymore.

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

No branches or pull requests

2 participants