@bpr,
Thank you. So, I think it would be helpful to detail the steps that would be needed for a customer with a new Raspian image. Here is what I have far:
- Make sure you have the latest:
sudo apt update // See what is available
sudo apt full-upgrade. // Perform the upgrade
sudo apt clean // Free up space
sudo reboot
- Check to make sure you have Node and npm
node -v // should get a version response like v10.24.0
npm -v // should get a version response like 5.8.0
If you don’t get the responses listed, you need to install these
- Assuming these work - then use your command
sudo npm install -g particle-cli // Test by typing "particle -v" at the command prompt - should get an information page
Here is the problem, I don’t think this is a complete install. When I put a Particle device into “listening mode” and connect it to the Raspberry Pi’s USB port, I get this error message.
The 'serialport' dependency is missing or invalid.
Please reinstall https://docs.particle.io/tutorials/developer-tools/cli/#installing
Cannot find module '@serialport/bindings'
so, I tried instruction on the particle docs page:
bash <( curl -sL https://particle.io/install-cli ) // Installed successfully - told me to uninstall using npm
npm uninstall -g particle-cli // Then closed and opened terminal window
particle -v // This worked
particle identify // failed with the same error 'serialport' message
This gets me right back to the same error I got before. So, I tried installing serialport…
sudo npm install -g serialport
Failed at the @serialport/bindings@9.2.7 install script. It looks like it is failing in the prebuild step when installing node-gyp
So, I have the Particle CLI but I cannot us the Raspberry Pi to communicate with a Particle device over USB. I am a Raspberry novice so any help would be appreciated.
Thanks,
chip