How to install particle dev on Ubuntu 16.04

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 :

  1. Make sure you have build-essential:
    sudo apt-get install build-essential
  2. 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!)
  3. Remove the Particle packages from within Atom and exit Atom
  4. The problem child is particle-dev, so install it first from the terminal:
    export npm_config_runtime=electron
    apm install particle-dev
  5. 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
  6. Now startup Atom and if red bug icon at lower right corner, select it then select Rebuild Modules and restart Atom
  7. 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
  8. 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 . . .

2 Likes