i'm try install cast for node red using this comand:
npm install node-red-contrib-cast
but i have this error:
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code sh ould use the URLSearchParams API instead.
npm ERR! code 1
npm ERR! path /root/.node-red/node_modules/protobufjs
npm ERR! command failed
npm ERR! command sh -c -- node scripts/postinstall
npm ERR! node:internal/modules/cjs/loader:998
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module '/root/.node-red/node_modules/protobufjs/scripts/postinst all'
npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:841:27)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main: 81:12)
npm ERR! at node:internal/main/run_main_module:22:47 {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: []
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-02-27T18_23_24_188Z-debug-0.log```
only for this node!!
i'm formatting sd card and flash raspbian, i'm follow instruction for install node red but i can't install this node using this command:
npm install node-red-contrib-cast
what if you try to install the package that is failing yourself ?
from .node-red folder npm install protobufjs
if successful then re-run the installation of npm install node-red-contrib-cast
Why in the next screen shot it shows you running sudo npm install node-red-contrib-cast'? you just said you don't use sudo`
When you refreshed the SD card, what user did you setup? If it was 'pi' then (unless you have extenuating reasons you haven't explained) you should run the bash script while signed in as the 'pi' user or the name of the user you chose.
Please open a terminal window and start node-red and copy the log from when you issue the node-red command to when you see the line:
1 Mar 03:34:44 - [info] Started flows
that. along with the answers to all the questions, will give us information to help you out.