Rather than publishing my new node, I followed the node-red packaging guide to test the node locally, but I can't get it to display in my node-RED palette, and seeing strange npm behaviour.
npm v6.4.1
node-RED v 0.19.5
Node.js version: v8.12.0
I made a few early mistakes initially by calling the node 'node-red-contrib-RFM69Pi-Decoder' (note upper-case), but later changed it to 'node-red-contrib-rfm69pi-decoder'. However, when I try and link the node, I get;
pi@raspberrypi:~/.node-red $ npm install /home/pi/testnode/node-red-contrib-rfm69pi-decoder
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.
+ node-red-contrib-rfm69pi-decoder@0.0.2
added 3 packages from 1 contributor and audited 1425 packages in 54.756s
found 23 vulnerabilities (3 low, 12 moderate, 8 high)
run `npm audit fix` to fix them, or `npm audit` for details
...which looks good, but after a NR stop/start, the node does not appear in the palette, and if I look in ~/.node-red/node_modules
, I see;
- NOTE - node-red-contrib-RFM69Pi-Decoder.
So I deleted both 'node-red-contrib-RFM69Pi-Decoder' & 'node-red-contrib-rfm69pi-decoder' and cleaned the npm cache -npm cache clean --force
and tried again, and got exactly the same result.
Where is it getting 'node-red-contrib-RFM69Pi-Decoder' from?? It's not mentioned in any of my node files, and why isn't my node displayed in the palette?