Node : Cannot Execute Binary File

1,667 views
Skip to first unread message

joshp...@gmail.com

unread,
Dec 27, 2013, 1:30:41 PM12/27/13
to beagl...@googlegroups.com
Hey all, just received my BBB A6 board and flashed to the 2013-09-04 angstrom image. I have set up my node app, and even run it once. Then I rebooted, and I keep getting the cannot execute binary file error anytime I try to use the node command. I did not do any updates or anything since it was working. I simply powered down, then powered back up to plug in some jumpers. 

I tried opkg update > opkg install node and it returns an unknown package message same thing if I do opkg upgrade node.

Any idea what could be causing this? 

ch...@freeranger.com

unread,
Jun 21, 2014, 8:52:01 PM6/21/14
to beagl...@googlegroups.com, joshp...@gmail.com
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.
Reply all
Reply to author
Forward
0 new messages