Updating dashboard on a raspi zero

It fails with the following message:
2021-07-13T13:44:18.530Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-dashboard@2.30.0
2021-07-13T13:44:51.546Z [err] npm
2021-07-13T13:44:51.608Z [err] WARN npm npm does not support Node.js v10.24.0
2021-07-13T13:44:51.608Z [err] npm WARN npm You should probably upgrade to a newer version of node as we
2021-07-13T13:44:51.608Z [err] npm WARN
2021-07-13T13:44:51.645Z [err] npm can't make any promises that npm will work with this version.
2021-07-13T13:44:51.645Z [err] npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
2021-07-13T13:44:51.645Z [err] npm WARN npm You can find the latest version at https://nodejs.org/
2021-07-13T13:45:52.504Z [err] npm
2021-07-13T13:45:52.506Z [err]
2021-07-13T13:45:52.508Z [err] WARN
2021-07-13T13:45:52.510Z [err]
2021-07-13T13:45:52.537Z [err] registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/node-red-dashboard failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org registry.npmjs.org:443
2021-07-13T13:45:52.537Z [err] npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
2021-07-13T13:45:54.492Z [err] npm
2021-07-13T13:45:54.494Z [err]
2021-07-13T13:45:54.496Z [err] ERR!
2021-07-13T13:45:54.515Z [err] code ETARGET
2021-07-13T13:45:54.743Z [err] npm
2021-07-13T13:45:54.745Z [err]
2021-07-13T13:45:54.747Z [err] ERR!
2021-07-13T13:45:54.751Z [err] notarget No matching version found for node-red-dashboard@2.30.0
2021-07-13T13:45:54.751Z [err] npm
2021-07-13T13:45:54.753Z [err] ERR!
2021-07-13T13:45:54.754Z [err]
2021-07-13T13:45:54.756Z [err] notarget
2021-07-13T13:45:54.761Z [err] In most cases you or one of your dependencies are requesting
2021-07-13T13:45:54.761Z [err] npm ERR! notarget a package version that doesn't exist.
2021-07-13T13:45:54.925Z [err]
2021-07-13T13:45:54.931Z [err] npm
2021-07-13T13:45:54.932Z [err]
2021-07-13T13:45:54.934Z [err] ERR!
2021-07-13T13:45:54.941Z [err] A complete log of this run can be found in:
2021-07-13T13:45:54.941Z [err] npm ERR! /home/pi/.npm/_logs/2021-07-13T13_45_54_848Z-debug.log
2021-07-13T13:45:55.019Z rc=1

Can someone please explain what that means and what must be done to correct that?

Thanks in advance!

Most odd. Maybe a cache corruption ? Maybe run npm cache clean —force
Then retry

Looks like the node.js and npm are not compatible?
pi@raspberrypi:~ $ npm cache clean --force
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN using --force I sure hope you know what you are doing.

pi@raspberrypi:~ $ npm version
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
{ npm: '5.8.0',
ares: '1.14.0',
brotli: '1.0.7',
cldr: '34.0',
http_parser: '2.9.4',
icu: '63.1',
modules: '64',
napi: '7',
nghttp2: '1.41.0',
node: '10.24.0',
openssl: '1.1.1d',
tz: '2018e',
unicode: '11.0',
uv: '1.24.1',
v8: '6.8.275.32-node.59',
zlib: '1.2.11' }
pi@raspberrypi:~ $

Last time i updated it i use the command
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Are there other, better methodes to update?

Several options :slight_smile:
You can install newer npm.
sudo npm i -g npm@6
Then retry
Or re run the full install script latest version. And follow instructions to update node to 12 or 14. But if you have lots of extra nodes that talk to i2c or gpio I may advise against that for niw

Oh yes, i use 6 i2c devices, so it might be better to wait a month or two and try it then again.

Thanks for the replies!

edit: typo

I would update npm as above then. Retry. Just don’t update nodejs

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.