normen / homebridge-landroid

Homebridge plugin to control Worx Landroid robo mowers through the Worx Cloud
24 stars 8 forks source link

Error while updating 0.11.5 => 0.11.9 / No update or deleting possible #59

Closed Madcat-76310 closed 1 year ago

Madcat-76310 commented 1 year ago

Hi, I've tried to update the plugin from 0.11.5 to 0.11.9, but i've an error message (see below). Since this trial, i can't delete the plugin with the same type of error (see second message)...

Running post-install scripts... /opt/homebridge/lib/node_modules/npm/lib/cli.js:48 throw err ^

Error: Cannot find module 'semver/functions/satisfies' Require stack:

Node.js v18.16.1 Failed to rebuild. Restoring previous version... Restore Complete. Installation failed.

Bundled install / update could not complete. Trying regular install / update using npm.

USER: homebridge DIR: /var/lib/homebridge CMD: npm install --save homebridge-landroid@0.11.9

/opt/homebridge/lib/node_modules/npm/lib/cli.js:48 throw err ^

Error: Cannot find module 'semver/functions/satisfies' Require stack:

Node.js v18.16.1

Operation failed. Please review log for details.

Madcat-76310 commented 1 year ago

I can't delete the plugin in home bridge with this error message :

USER: homebridge DIR: /var/lib/homebridge CMD: npm uninstall --save homebridge-landroid

/opt/homebridge/lib/node_modules/npm/lib/cli.js:48 throw err ^

Error: Cannot find module 'semver/functions/satisfies' Require stack:

Node.js v18.16.1

Operation failed. Please review log for details.

normen commented 1 year ago

Your node.js installation is borked.

Madcat-76310 commented 1 year ago

Yes, I didn't understand why... Problem solved after deleting two files and making the update :

/opt/homebridge/lib/node_modules/npm/lib/cli.js /opt/homebridge/lib/node_modules/npm/bin/npm-cli.js