particle-iot / particle-cli-wrapper

Auto-updating wrapper for the Particle CLI
https://www.particle.io/cli
Apache License 2.0
0 stars 3 forks source link

Update Particle CLI wrapper to modern version of Node #7

Closed monkbroc closed 5 years ago

monkbroc commented 5 years ago

Updates the Particle CLI wrapper to Node 8 (cannot use Node 10 yet since serialport 6.2.0 is not precompiled for Node 10)

The most important change is to run npm rebuild after installing or upgrading Node. It turns out running npm rebuild in an empty directory is a no-op so it doesn't hurt to run it on first install and after Node upgrades. https://github.com/particle-iot/particle-cli-wrapper/pull/7/files#diff-f6846c341ab11ff34eeb7463ce2816ffR20

This PR also defines the steps to update Node in future versions of the CLI wrapper.

Steps to test: