hi all, I'm trying to install a node using the npm command from the terminal, using the following command
"npm install node-red-contrib-fs-ops".
The command doesn't give me any problems but when I go to look for the node in node red I can't find it.
how can I solve this problem?
You need to reboot Node-RED manually
i'm try using command node-red-reboot and reboot my raspberry but not working
stop node-red, start node-red, refresh browser.
If you dont know how, then reboot your PI
i'm using command node-red-reboot node-red-stop node-red-start and restart phisically PI but not working.
Did you run the command (npm install...) in the .node-red
folder?
cd .node-red
npm i node-red-contrib-fs-ops
If you open the package.json
file in the .node-red
folder, do you see this line "node-red-contrib-fs-ops"?
Colin
27 February 2023 13:25
7
Firstly, what version of node-red and nodejs are you using (use node -v
for the nodejs version).
Go into your .node-red folder (that is important) and run
npm remove node-red-contrib-fs-ops
npm install node-red-contrib-fs-ops
and copy/paste here (not screenshot) the output you see.
yes, i install inside .node-red and yes the component inside to package.json
Steve already said it but don't forget to refresh your browser after restarting node-red.
jbudd
27 February 2023 14:02
10
Can I ask what node-red-contrib-fs-ops gives you that the exec node doesn't?
I resolve formatting my raspberry thanks for all!
IMHO...
I find fs-ops is well written for single and multiple operations. It gives the user typedInputs for where inputs go in & results go out making it very easy to chain together (in series) operations on multiple files. Under the hood it uses node fs
and doesnt spawn any execs.
Colin
27 February 2023 14:26
13
That is a pity. Now you won't know how to fix it the next time you have a similar problem.
in the end you just need to back up your .json work projects and you can format it without problems
Colin
27 February 2023 16:02
15
What has that got to do with understanding what the problem was?
ok i figured out where is the problem i was running node red as user, in my case giacomo so i don't have root permissions.
sorry for the inconvenience
Colin
27 February 2023 18:52
17
You don't need, and should not have, root permissions to install nodes.
I need it because in are writing and reading nodes
Colin
27 February 2023 20:00
19
What hardware and OS are you running on?