Node-red-contrib-canbus install failed

What command are you using to install it and from which directory? The log seems to suggest you are running it from /home/pi instead of /home/pi/.node-red.