I'm getting a similar problem. If I run node by itself I get:
root@redbone:~/node-red2# node
-bash: /usr/local/bin/node: cannot execute binary file
The path,
/usr/local/bin/, shows it is there:
-rwxr-xr-x 1 root staff 9958098 Jun 13 22:21 node
lrwxrwxrwx 1 root staff 38 Jun 13 22:21 npm -> ../lib/node_modules/npm/bin/npm-cli.js
When trying to run npm install, my previously working setup on debian wheezy, beaglebone black, has somehow broken and now returns:
/usr/local/bin/node: 1: /usr/local/bin/node: Syntax error: "(" unexpected
when launching my previously working, node-red:
root@redbone:~/node-red2# node --max-old-space-size=256 red.js -v
results in this:
-bash: /usr/local/bin/node: cannot execute binary file
I'm not finding much about how to reinstall or clean up a misconfigured node installation.
Any tips would be appreciated,
Chris.