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

Error: Cannot find module 'graceful-fs' #68

Open
muzzol opened this issue Apr 5, 2024 · 2 comments
Open

Error: Cannot find module 'graceful-fs' #68

muzzol opened this issue Apr 5, 2024 · 2 comments

Comments

@muzzol
Copy link

muzzol commented Apr 5, 2024

On a fresh etherpad install this plugin doesn't work.

I did the typical install:


git clone --branch master https://github.com/ether/etherpad-lite.git
cd etherpad-lite
./bin/run.sh --root

and then I installed ep_image_upload from admin page.

this is the error I'm receiving:
[2024-04-05T20:10:53.182] [ERROR] settings - Failed to load hook function "/opt/etherpad-lite-git-04042024/src/plugin_packages/ep_image_upload/index:clientVars" for plugin "ep_image_upload" part "ep_image_upload" hook set "hooks" hook "clientVars": Error: Cannot find module 'graceful-fs'

please, don't hesitate to ask for further info.

lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
npm -v
10.5.1
@muzzol
Copy link
Author

muzzol commented Apr 5, 2024

to add more information, I also tried with:

pnpm run install-plugins ep_image_upload

and this is what I get:


[2024-04-05T21:11:56.108] [INFO] settings - Installing plugin from registry: ep_image_upload
[2024-04-05T21:11:56.242] [INFO] plugins - pnpm --version: 8.15.6
[2024-04-05T21:12:01.325] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/lodash/package.json' for file:///opt/etherpad-lite/src/plugin_packages/lodash/package.json
[2024-04-05T21:12:01.329] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/inherits/package.json' for file:///opt/etherpad-lite/src/plugin_packages/inherits/package.json
[2024-04-05T21:12:01.330] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/call-bind/package.json' for file:///opt/etherpad-lite/src/plugin_packages/call-bind/package.json
[2024-04-05T21:12:01.330] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/has-tostringtag/package.json' for file:///opt/etherpad-lite/src/plugin_packages/has-tostringtag/package.json
[2024-04-05T21:12:01.331] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/is-typed-array/package.json' for file:///opt/etherpad-lite/src/plugin_packages/is-typed-array/package.json
[2024-04-05T21:12:01.331] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/which-typed-array/package.json' for file:///opt/etherpad-lite/src/plugin_packages/which-typed-array/package.json
[2024-04-05T21:12:01.332] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/graceful-fs/package.json' for file:///opt/etherpad-lite/src/plugin_packages/graceful-fs/package.json
[2024-04-05T21:12:01.333] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/mime-types/package.json' for file:///opt/etherpad-lite/src/plugin_packages/mime-types/package.json
[2024-04-05T21:12:01.333] [ERROR] settings - Error reading package.json Error: ENOENT: no such file or directory, open '/opt/etherpad-lite/src/plugin_packages/underscore/package.json' for file:///opt/etherpad-lite/src/plugin_packages/underscore/package.json

@YoannChabert
Copy link

Mine is working only with etherpad v2.0.2 (and not with v2.0.1)

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