rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
716 stars 289 forks source link

after running (cd .. && ./bin/npm install) I get ./bin/npm: line 4: ~/shiny-server/bin/../ext/node/bin/node: cannot execute binary file #440

Open FabrizioTicchiarelli opened 4 years ago

FabrizioTicchiarelli commented 4 years ago

I am trying to set up a shiny server on my Mac running Mojave 10.14.5. I followed the installation guide up to: (cd .. && ./bin/npm install)

but when I run that I get: ./bin/npm: line 4: ~/shiny-server/bin/../ext/node/bin/node: cannot execute binary file

Maybe this has to do with the node version installed when running the install-node.sh, but i am not sure how to solve this issue and cannot seem to find it documented anywhere.

Any help would be greatly appreciated! :)

Have a lovely day, Fabrizio

rmcd1024 commented 4 years ago

Hi, not a mac user but I think you need to go here: https://nodejs.org/dist/latest-v12.x/ and get the darwin version. Install it following the script in install-node.sh. Once it's installed, the script will not overwrite it.

Joe Cheng discusses this issue (nodejs for amd64 is hard-coded in the script) in Issue https://github.com/rstudio/shiny-server/issues/347.