This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
signal k server not work
#18
Since a while (possibly, but not certain, since I updated the Signal K server from v1.4 to v2.1), I could not install nor update apps from the Signal K Appstore. As I really wanted to update KIP, I decided to update Signal K server with OpenPlotter Signal K installer (latest updated version) but this failed as well. Trying with terminal I got this:

**************
pi@Antares:~ $ sudo rm -rf /usr/lib/node_modules/signalk-server
pi@Antares:~ $ npm install -g signalk-server
/usr/lib/node_modules/npm/lib/cli.js:35
    throw err
    ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)

Node.js v18.17.1
pi@Antares:~ $
**********

npm and Node.js are under /usr/node_modules


I did not want to redo a clean install of OpenPlotter as I have many other softs and data on my 250GB SSD as well as poor Internet connectivity.

Trying to install npm anew gave:

**********
pi@Antares:~ $ sudo apt-get -f install npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libnode72 : Conflicts: nodejs-legacy
nodejs : Conflicts: npmsudo apt-get autoclean
E: Unable to correct problems, you have held broken packages.
**********

It seems to be a problem between nodejs and npm because nodejs gets installed from deb.nodesource.com while npm comes from ubuntu.

I found a solution by removing nodejs and npm entirely (perplexity.ai)

$ sudo apt-get --purge remove nodejs node npm
$ sudo apt-get clean
$ sudo apt-get autoclean
$ sudo apt-get -f install
$ sudo apt-get autoremove

and reinstalling nodejs with aptitude (Installing nodejs will install npm)

$ sudo apt install aptitude
$ sudo aptitude install npm


Reinstalling Signal K server and the apps was then possible again.
Reply


Messages In This Thread
signal k server not work - by jvadell - 2023-07-29, 12:01 PM
RE: signal k server not work - by gildas declercq - 2023-07-29, 08:53 PM
RE: signal k server not work - by PaddyB - 2023-07-29, 09:44 PM
RE: signal k server not work - by jvadell - 2023-07-31, 05:56 AM
RE: signal k server not work - by PaddyB - 2023-07-31, 06:31 AM
RE: signal k server not work - by tjm - 2023-08-02, 08:48 PM
RE: signal k server not work - by tkurki - 2023-08-03, 04:26 AM
RE: signal k server not work - by tjm - 2023-08-03, 01:05 PM
RE: signal k server not work - by beercansailor - 2023-08-03, 11:58 PM
RE: signal k server not work - by tjm - 2023-08-04, 09:24 AM
RE: signal k server not work - by beercansailor - 2023-08-16, 05:00 AM
RE: signal k server not work - by Boatingbaileys - 2023-08-17, 06:52 PM
RE: signal k server not work - by Mitch C - 2023-08-28, 08:34 AM
RE: signal k server not work - by Boatingbaileys - 2023-08-28, 02:09 PM
RE: signal k server not work - by tkurki - 2023-08-28, 03:50 PM
RE: signal k server not work - by Boatingbaileys - 2023-08-29, 05:07 PM
RE: signal k server not work - by aitonos - 2023-10-07, 10:26 PM
RE: signal k server not work - by Sailabout - 2023-11-14, 10:59 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)