I am trying to install node-red-contrib-cast, but I get the message 'failed to install'.
Nodered is running on a Raspberry pi 2. So far I had no problems with other installs.
I did already run an update and upgrade.
Any idea how to fix ?
Didier
I am trying to install node-red-contrib-cast, but I get the message 'failed to install'.
Nodered is running on a Raspberry pi 2. So far I had no problems with other installs.
I did already run an update and upgrade.
Any idea how to fix ?
Didier
In a terminal change to the .node-red
directory and run
npm install node-red-contrib-cast
and copy/paste the full result here. Preferably copy/paste rather than screenshot if possible.
Also tell us which version of node-red and nodejs you are using (node -v
for the latter) and how you installed node-red.
here is the result
pi@theone ~ $ npm install node-red-contrib-cast
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
14 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
pi@theone ~ $
and here the version
pi@theone ~ $ node -v
v10.18.1
I guess I installed node-red as root
kind regards
Didier
I don't think you did the first part of that.
When I asked how you installed node red I meant what you did in order to install it. The recommended way of installing for a Pi is
https://nodered.org/docs/getting-started/raspberrypi
If you didn't do that then it might be best to run the script there before doing anything else, then you can be confident you have a consistent set of tools.
Solved !
thanks
Didier
Once again you have failed to tell us the exact error, so we can only guess as to the exact cause, but a permissions error installing a node often means you have files in your home folder that are owned by root, which can happen if you install nodes locally using sudo. The solution is to change the ownership of all files in the .node-red folder to the correct user.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.