Not able to install or deinstall nodes


I have some truble with installation of nodes or deinstallation. On every try I will get the same message and tried to repair npm package issue. Do you have any idea to fix this issue?

Thanks and regards

2019-11-12T19:47:07.568Z installieren : magichome-led-node 1.0.2

2019-11-12T19:47:08.655Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production magichome-led-node@1.0.2
2019-11-12T19:47:14.381Z [err] npm
2019-11-12T19:47:14.381Z [err] ERR! code EISGIT
2019-11-12T19:47:14.381Z [err] npm
2019-11-12T19:47:14.381Z [err]
2019-11-12T19:47:14.381Z [err] ERR!
2019-11-12T19:47:14.381Z [err] path
2019-11-12T19:47:14.381Z [err] /opt/iobroker/iobroker-data/node-red/node_modules/function-plot
2019-11-12T19:47:14.384Z [err] npm
2019-11-12T19:47:14.384Z [err] ERR! git
2019-11-12T19:47:14.384Z [err] /opt/iobroker/iobroker-data/node-red/node_modules/function-plot: Appears to be a git repo or submodule.
2019-11-12T19:47:14.384Z [err] npm
2019-11-12T19:47:14.384Z [err] ERR!
2019-11-12T19:47:14.384Z [err]
2019-11-12T19:47:14.384Z [err] git /opt/iobroker/iobroker-data/node-red/node_modules/function-plot
2019-11-12T19:47:14.384Z [err] npm
2019-11-12T19:47:14.384Z [err] ERR!
2019-11-12T19:47:14.385Z [err]
2019-11-12T19:47:14.385Z [err] git
2019-11-12T19:47:14.385Z [err] Refusing to remove it. Update manually,
2019-11-12T19:47:14.385Z [err] npm
2019-11-12T19:47:14.385Z [err] ERR!
2019-11-12T19:47:14.385Z [err]
2019-11-12T19:47:14.385Z [err] git or move it out of the way first.
2019-11-12T19:47:14.440Z [err]
2019-11-12T19:47:14.440Z [err] npm ERR! A complete log of this run can be found in:
2019-11-12T19:47:14.440Z [err] npm ERR!
2019-11-12T19:47:14.440Z [err] /home/iobroker/.npm/_logs/2019-11-12T19_47_14_392Z-debug.log
2019-11-12T19:47:14.451Z rc=1

Npm does not like .git folders in node modules. You could delete that folder. You will need to re-install that node if you need it.

Thanks Colin, your workaround works :slight_smile: