$PATH looks corrupted, is my hunch about the fix right?
Your fix is missing a forward slash before Users, therefore …tools:/Users/gpiuser/.npm/bin.

It seems …tools:$HOME/.npm/bin was what was intended, but stating the literal path works too.