Node-Red: "Error: inject node not deployed" on Raspberry Pi

I have the same problem as described here Node-Red: "Error: <nodename> node not deployed" on Raspberry Pi B+ but on a Pi model B.

The answer provided does not solve the problem for me, but I do not have enough reputation to comment or vote on that posting.

I tried the export and restart procedure per that post, and found my exported file in node-red/lib/flows, but the file name was flows_raspberrypi.json.json. So, I tried again but left ".json" out of the library name. That created the correct file.

However, on restart it still complained that "Flows file not found : flows_raspberrypi.json". The file is in node-red/lib/flows. But when I import it, it is not as I left it (only has one node instead of two wired together). Attempting to repair it only gets me the same "inject node not deployed" error.

Since it is behaving wierdly, I tried re-installing per https://learn.adafruit.com/raspberry-pi-hosting-node-red without success. Has anyone gotten it to work? Hints?

You have to place your flows_raspberrypi.json file in the first node-red installation directory. e.g for me its /home/pi/node-red

it will find the file then, and inject the flow.