mazi-project / portal

This is the portal of the MAZI toolkit
http://www.mazizone.eu/toolkit/
MIT License
18 stars 6 forks source link

issue installing plug-ins for etherpad on v2.5.3 stable branch #138

Open mgaved opened 6 years ago

mgaved commented 6 years ago

(raised in tech@mazizone list but presented here for wider audience in case other people have this issue)

I’d like to install some additional plug-ins for Etherpad on my MAZIzone (v2.5.3 stable channel). I’ve encountered a problem.

The admin interface for Ethernet has a plugins page http://local.mazizone.eu:9001/admin/plugins

I saw a plug-in I’d like to install (list_pads) and there’s a nice big “Install” button.

I click on install, it says “Installing” but now I have an error:

“local.mazizone.eu:9091 says: An error occurred while installing ep_list_pads /var/www/html/etherpad-lite/node_modules/_ep_comments_page: Appears to be a git repo or submodule”

Can you help me progress the installation?

I’ve come across https://github.com/ether/etherpad-lite/issues/1647

which suggests you first need to install ep_heading and then move this to the right directory, but when I try to install this plug-in I get the same issue

From https://www.npmjs.com/package/ep_list_pads I see there’s the instruction

npm i ep_list_pads

I do this on the command line, it fails, when I try

sudo npm i ep_list_pads

I get the following:

pi@mazizone:/var/www/html/etherpad-lite/node_modules $ sudo npm i ep_list_pads npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/etherpad-lite/package.json' npm ERR! Linux 4.9.31-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "ep_list_pads" npm ERR! node v6.7.0 npm ERR! npm v3.10.3 npm ERR! path /var/www/html/etherpad-lite/node_modules/ep_comments_page npm ERR! code EISGIT

npm ERR! git /var/www/html/etherpad-lite/node_modules/ep_comments_page: Appears to be a git repo or submodule. npm ERR! git /var/www/html/etherpad-lite/node_modules/ep_comments_page npm ERR! git Refusing to remove it. Update manually, npm ERR! git or move it out of the way first.

npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/etherpad-lite/node_modules/npm-debug.log pi@mazizone:/var/www/html/etherpad-lite/node_modules $

Can you help?

I think we might need to put a warning on the documentation as it look likes the one-button-installation on the plugins interface (http://local.mazizone.eu:9001/admin/plugins ) might have some complications. Happy to learn that I've been making a basic mistake though! thanks for your help.