ERROR installing p5bots-server

Hello! I’m having some trouble following along with the HelloWorld p5bots tutorial: https://github.com/sarahgp/p5bots/blob/master/examples/HelloWorld.md

I keep getting a bunch of errors when I try to run “npm install -g p5bots-server.”

I also posted on the GitHub Issues page in the thread in which people were posting about similar issues, but it seems to be less active. (https://github.com/sarahgp/p5bots/issues/31)

Here are some of the errors I get in the terminal:

node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-darwin-x64.tar.gz 
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp)

Thanks in advance for your help!

1 Like

Were you able to resolve this? 404 errors mean that whatever script / installer / tutorial / example you were following, it refers to files that aren’t at that path.

Here is the release that those error urls appear to be referring to:

Notice that your urls say “v72” but that isn’t in the releases list, which include various numbers from v11 to v57.

1 Like

Thanks for the link and suggestions, Jeremy. I ended up getting it to work just yesterday by using Node version 0.12.9 (using “nvm install 0.12.9”), but perhaps going into the code from the tutorial I was following and changing the v# will be a better solution!

1 Like