Unable to upgrade/remove/ install

Hello

I have just installed node red , as per the bash in the documentation.

And i have this strange log when try to instal a node, and also when to upgrade another


2019-10-14T14:28:38.107Z Install : node-red-contrib-alexa-notifyme 1.0.1

2019-10-14T14:28:38.247Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-alexa-notifyme@1.0.1
2019-10-14T14:29:21.860Z [err] npm
2019-10-14T14:29:21.861Z [err] ERR! path /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-10-14T14:29:21.861Z [err] npm ERR! code EISGIT
2019-10-14T14:29:21.865Z [err] npm
2019-10-14T14:29:21.865Z [err] ERR! git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder: Appears to be a git repo or submodule.
2019-10-14T14:29:21.865Z [err] npm ERR!
2019-10-14T14:29:21.865Z [err] git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-10-14T14:29:21.866Z [err] npm
2019-10-14T14:29:21.866Z [err] ERR!
2019-10-14T14:29:21.866Z [err] git
2019-10-14T14:29:21.866Z [err] Refusing to remove it. Update manually,
2019-10-14T14:29:21.866Z [err] npm
2019-10-14T14:29:21.866Z [err] ERR! git
2019-10-14T14:29:21.866Z [err] or move it out of the way first.
2019-10-14T14:29:22.059Z [err]
2019-10-14T14:29:22.059Z [err] npm ERR! A complete log of this run can be found in:
2019-10-14T14:29:22.059Z [err] npm ERR!
2019-10-14T14:29:22.059Z [err] /home/pi/.npm/_logs/2019-10-14T14_29_21_896Z-debug.log
2019-10-14T14:29:22.092Z rc=1


2019-10-14T14:30:49.583Z Install : node-red-contrib-uibuilder 2.0.5

2019-10-14T14:30:49.684Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-uibuilder@2.0.5
2019-10-14T14:31:31.621Z [err] npm
2019-10-14T14:31:31.622Z [err] ERR! path /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-10-14T14:31:31.622Z [err] npm
2019-10-14T14:31:31.622Z [err] ERR! code EISGIT
2019-10-14T14:31:31.626Z [err] npm
2019-10-14T14:31:31.627Z [err] ERR! git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder: Appears to be a git repo or submodule.
2019-10-14T14:31:31.627Z [err] npm ERR!
2019-10-14T14:31:31.627Z [err] git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-10-14T14:31:31.627Z [err] npm
2019-10-14T14:31:31.627Z [err] ERR! git
2019-10-14T14:31:31.627Z [err] Refusing to remove it. Update manually,
2019-10-14T14:31:31.627Z [err] npm
2019-10-14T14:31:31.628Z [err] ERR! git
2019-10-14T14:31:31.628Z [err] or move it out of the way first.
2019-10-14T14:31:32.050Z [err]
2019-10-14T14:31:32.051Z [err] npm ERR! A complete log of this run can be found in:
2019-10-14T14:31:32.051Z [err] npm ERR!
2019-10-14T14:31:32.051Z [err] /home/pi/.npm/_logs/2019-10-14T14_31_31_645Z-debug.log
2019-10-14T14:31:32.083Z rc=1

I think there was in issue with uibuilder some time ago that resulted in a .git folder in the install, which npm does not like. I suggest that you remove the folder .node-red/node_modules/node-red-contrib-uibuilder and try again. If you use uibuilder you will need to re-install it.

1 Like

Note that uninstalling uibuilder from the command line or indeed, deleting the <userDir>/node_modules/uibuilder folder then reinstalling will have no impact on your flows.

You could also just delete the <userDir>/node_modules/uibuilder/.git folder which should fix the issue.