Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node server.js responds with "illegal instruction" #2

Open
keptenkurk opened this issue Mar 18, 2018 · 2 comments
Open

node server.js responds with "illegal instruction" #2

keptenkurk opened this issue Mar 18, 2018 · 2 comments

Comments

@keptenkurk
Copy link

Trying to install on Raspberry Pi (Linux bs440rpi 4.4.38+ #938 Thu Dec 15 15:17:54 GMT 2016 armv6l GNU/Linux).
Running node 6.11.3
Installation runs fine. Obtained Google maps API key and put it in server.js.
When running "node server.js" the only response is "illegal instruction".
sudo node server.js just returns the prompt after 10 seconds.
No access to the webpage on port 7270

do i miss anything obvious?

@janjongboom
Copy link
Owner

@keptenkurk Can you run any other node commands? nodejs/node#283 seems to indicate that it has something to do with a mis-detected architecture on your platform...

@keptenkurk
Copy link
Author

keptenkurk commented Mar 18, 2018

I can run node -v, also Node-red is running fine on this platform.
But i could well have installed armv7 installer on the armv6 hw.
node -p "process.arch" returns "arm" so not of much help :-)

wait... node -help responds:
node -help
target arm v6 vfp2 hard
ARMv8=0 ARMv7=0 VFP3=0 VFP32DREGS=0 NEON=0 SUDIV=0 MLS=0UNALIGNED_ACCESSES=0 MOVW_MOVT_IMMEDIATE_LOADS=0 COHERENT_CACHE=0 USE_EABI_HARDFLOAT=1

so i should be on the right architecture, or...
from:
https://raspberrypi.stackexchange.com/questions/24059/node-js-v0-11-14-exits-with-illegal-instruction

cat /proc/cpuinfo
model name : ARMv6-compatible processor rev 7 (v6l)
... arm6 or arm7 ?
Now i'm really confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants