Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

I can't install/update/uninstall plugins #106

Open
mrtpcet opened this issue May 28, 2020 · 8 comments
Open

I can't install/update/uninstall plugins #106

mrtpcet opened this issue May 28, 2020 · 8 comments

Comments

@mrtpcet
Copy link

mrtpcet commented May 28, 2020

Hello !

I think since the last update, I can no longer install, update or uninstall plugins without getting this message :

An error occurred while installing ep_align 
ENOENT: no such file or directory, rename '/var/www/etherpad_mypads/node_modules/.staging/ep_etherpad-lite-629fb491/node_modules/@babel/code-frame' -> '/var/www/etherpad_mypads/node_modules/.staging/@babel/code-frame-525bc192'

Capture d’écran 2020-05-28 à 14 42 02

@mrtpcet
Copy link
Author

mrtpcet commented May 28, 2020

Sorry, I've just seen the pull request and try to upgrade to the testing branch

@mrtpcet
Copy link
Author

mrtpcet commented May 28, 2020

No, same error even with the testing version 1.8.4

@maniackcrudelis
Copy link
Contributor

Remove /var/www/etherpad_mypads/src/package-lock.json, or move it if you're not sure.
It should fix your issue.

@mrtpcet
Copy link
Author

mrtpcet commented May 28, 2020

Thanks for your quick answer !
But the issue is still here

@maniackcrudelis
Copy link
Contributor

Arg...
I've unfortunately no other solution for you, because I don't know why it doesn't work in the first place...
This error already happened, #90, and that fix solved the issue. Even though not sure why/how...

I didn't find any useful resources about that issue, and the dev of etherpad didn't help to find out...
Sorry to not provide any real solution. If you find what the problem is though, it would be interesting to know !

@mrtpcet
Copy link
Author

mrtpcet commented May 28, 2020

Ok ! Don't worry, I still can use Etherpad. I'll search for a solution too !

@mrtpcet
Copy link
Author

mrtpcet commented Jun 13, 2020

So, still in the test build, I upgrade npm in the etherpad_mypads folder with :
sudo n stable
npm cache clean

I run bin/installDeps.sh
I run bin/run.sh

I restart etherpad_mypads service

I delete package-lock.json
I delete etherpad_mypads/package-lock.json

And now that's works.
I'm not a specialist, so I'm just giving you my experience. !

@colmoneill
Copy link

Hi all,

I've been having the same issue described by @mrtpcet

Overall I'm delighted with the implementation and list of pre-installed plugins with this ynh app, but I wanted to remove the ep_automatic_logut plugin because I didn't need it.

Accessing the list of plugins via /admin/ works fine, but when install or uninstall buttons were clicked, nothing happened.

I tried removing the package-lock.json file from /var/www/etherpad_mypads/src but that didn't do it, so I tried the steps described by @mrtpcet above.

The first command seems incomplete to me, so I assumed is was sudo npm stable ? Didn't seem to do anything.
The second command cleared the cache.

Running the two scripts in the bin/ folder both returned the following error: Your npm version "3.10.10" is too old. npm 5.5.x or higher is required.

But removing package-lock.json from /var/www/etherpad_mypads AND /var/www/etherpad_mypads/src seemed to do the trick.

I was able to remove the plugin, so I restarted the service, it looks like that step re-created the package-lock.json files.

Now however, I am back in the same situation: I was testing this by trying to add a different plugin and this time I got the following:
Screenshot from 2020-10-21 17-31-06

Hope some of the above helps!

Thanks for the app!

All the best,

C

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants