This is how I was able to get particle-dev working in Atom with Ubuntu 16.04 after looking at posts from @suda and @nrobinson2000 :
- Make sure you have build-essential:
sudo apt-get install build-essential - Make sure you have a current version of nodejs, you can substitute 6.x vs 7.x below:
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
(may need to restart your computer!) - Remove the Particle packages from within Atom and exit Atom
- The problem child is particle-dev, so install it first from the terminal:
export npm_config_runtime=electron
apm install particle-dev - Then do this from a terminal in your Home directory:
cd ~/.atom/packages/particle-dev
npm install nopt
rm -rf node_modules/serialport
export ATOM_NODE_VERSION=0.22.3
apm install .
apm install tool-bar
apm rebuild-module-cache - Now startup Atom and if red bug icon at lower right corner, select it then select Rebuild Modules and restart Atom
- Now add all the other Particle packages in Atom:
particle-dev-cloud-variables
particle-dev-cloud-functions
particle-dev-profiles
particle-dev-libraries
language-particle
particle-dev-release-notes - You should now have extra icons in Atom like the Particle Web IDE and also a Particle menu item. If this did not work, try it in a different sequence!
I hope this helped save you some time . . .