Using libraries in Particle Dev


#1

Instructions for using Libraries V2 in Particle Dev

  1. Open Atom or Particle Dev
  2. Reveal command palette (Cmd+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux)
  3. Type “install packages” and select Settings View: Install Packages and Themes
  4. Search for particle-dev-libraries
  5. Click Install next to the package

Consult Readme for usage instructions.


Steps to use libraries 2.0
Steps to use libraries 2.0
#2

@suda, I cannot seem to get this installed on Win 10. I completely removed the older nodeJS version I had, removed CLI and removed the Particle Dev install I had as well. I then resintalled nodejs 6.9.1 and DEV 1.73 without a hitch. I installed CLI without any errors as well.

However, when I try and install the particle-dev-libraries package in DEV, I get these errors:

Installing “particle-dev-libraries@0.2.0” failed.Hide output…

> spawn-sync@1.0.15 postinstall C:\Users\Paul\AppData\Local\Temp\apm-install-dir-116103-5704-1caitqp\node_modules\particle-dev-libraries\node_modules\particle-commands\node_modules\yeoman-environment\node_modules\inquirer\node_modules\external-editor\node_modules\spawn-sync
> node postinstall

Installing native dependencies (this may take up to a minute)

> spawn-sync@1.0.15 postinstall C:\Users\Paul\AppData\Local\Temp\apm-install-dir-116103-5704-1caitqp\node_modules\particle-dev-libraries\node_modules\particle-commands\node_modules\yeoman-generator\node_modules\yeoman-test\node_modules\inquirer\node_modules\external-editor\node_modules\spawn-sync
> node postinstall


npm WARN engine sb-exec@3.1.0: wanted: {"node":">=6.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine shelljs@0.7.5: wanted: {"node":">=0.11.0","iojs":"*"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine istextorbinary@2.1.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\Paul\\AppData\\Local\\particledev\\app-1.7.3\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Paul\\AppData\\Local\\particledev\\app-1.7.3\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Paul\\.particledev\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Paul\\.particledev\\.apmrc" "install" "C:\\Users\\Paul\\AppData\\Local\\Temp\\d-116103-5704-1m8ns8\\package.tgz" "--target=0.36.8" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the spawn-sync@1.0.15 postinstall script 'node postinstall'.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.


0.2.03
particle-dev-libraries Libraries for Particle Dev
spark
Install
0.0.41,018
particle-dev-local-compiler Package providing local compilation for Particle devices in Particle Dev
spark
Install
0.1.55,891
particle-dev Professional, hackable IDE for Particle, based on Github's Atom
spark
SettingsDisable
0.1.01,259
particle-dev-cloud-variables Cloud variables panel for Particle Dev
spark
Disable
0.1.01,301
particle-dev-cloud-functions Cloud functions panel for Particle Dev
spark
Disable
0.1.91,494
particle-dev-profiles Particle Dev support for profiles and basic Particle Cloud authentication
spark
Install
1.0.0773
particle-dev-complete A meta package to install all the available packages for Particle Dev
spark
Install
0.53.2366
particle-dev-release-notes Displays the release notes of Particle Dev
spark
Disable
0.1.3610
particle-offline-compiler 100% offline compiling + upload workflow for Particle devices. Please see readme for prerequisites.
chuank
Install
0.36.1297
particle-dev-exception-reporting Reports uncaught Particle Dev exceptions to bugsnag.com
spark
Disable
0.3.4647
language-particle Atom language support for Particle devices
spark
SettingsDisable
0.1.3513
dev-tools-themes Make Developer Tools Beautiful Again
travs
Install
0.2.033
middleman-article-creator Quickly create a middleman article.
chocoby
Install
0.7.1162
pg-dev Package in order to help developing on PostgreSQL (functions)
arianbessonart
Install
0.11.051
atom-snippets-for-devs Snippets for Devs
marcelohmdias
Install
0.3.5768
wp-dev Snippets for WordPress development.
slushman
Install
0.8.05,621
chrome-color-picker A color picker inspired by chrome's dev tools color picker
puranjayjain
Install
0.47.0270,412
dev-live-reload Live reload atom themes and packages.
atom
Disable
0.1.1146
jspm-dev-buddy helps by emitting file changed events and makes navigation trivial when error occurs in the browser
capaj
Install
1.0.011
voz-living-dev-tool A short description of your package
phonglk
Install
0.3.1113
atom-gist-dev A package to facilitate easy, all-in-one Gist development for non-developers
CenterForAssessment
Install
2.0.023
sle Script Library Editor
ghostfarmer
Install
0.1.13,812
cdn-libs Quickly insert hosted libraries. (Bootstrap, Foundation, Angular, Jquery, FontAwesome... and more)
JavierBmrg
Install
0.1.1200
open-no-binaries Prevent opening binary files to prevent atom freezing
mishak87
Install
0.1.2714
dev-lorem Atom package for DevLorem
JenkinsDev
Install
0.2.03,702
linter-luaparse Lua syntax error checking, using the luaparse javascript library.
rameshvarun
Install
0.11.0845
p5xjs-autocomplete Autocomplete package for p5js library
JoseU
Install
1.5.1182
atom-peterjohnhunt-snippets A Custom Snippets Library
peterjohnhunt
Install
Featured Packages
1.1.0405,416
activate-power-mode Activate POWER MODE to write your code in style.
JoelBesada
Install
0.3.038,190
atomic-chrome Edit Chrome text directly from Atom
tuvistavie
Install
1.5.3129,743
git-time-machine Visually interact with git commit history for a file
littlebee
Install
0.4.022,818
qolor An atom package to color your SQL queries!
davidlgoldberg
Install
1.1.08,540
ficus-syntax High contrast theme. Inspired by figs.
protesilaos
Install
0.8.017,458
flatwhite-syntax Colored backgrounds used for code highlighting.
biletskyy
Install
1.1.010,443
gaia-dark-syntax Low-to-medium contrast theme. Gives an earthly feel.
protesilaos
Install
0.5.043,776
genesis-ui UI theme for Genesis Syntax
jmcalaway
Install
0.2.022,012
github-atom-light-syntax GitHub's official light syntax theme as an atom theme
primer
Install
0.1.58,201
spacegray-light-neue-ui Maintained port of the Spacegray Light theme to Atom.
sonph
Install
ClearConsole
Settingspkourany@hotmail.comNo devices selected

#3

Thanks for trying Paul. We’ll take a look at this too.


#4

Wow, it looks like a dependency of a dependency tries to build native modules for Windows… Could you try installing Visual Studio Community 2013 for Windows Desktop and trying again?


#5

@suda, I thought we had gotten rid of that VS2013 dependency!? An another Win10 that had errors installing libraries support, I installed VS2013, rebooted and retried the package install and got errors. The PC runs nodejs 6.9.1 and DEV 1.7.3:

Installing “particle-dev-libraries@0.2.0” failed.Hide output…

> spawn-sync@1.0.15 postinstall C:\Users\PMK\AppData\Local\Temp\apm-install-dir-116104-7008-i1o2kb\node_modules\particle-dev-libraries\node_modules\particle-commands\node_modules\yeoman-environment\node_modules\inquirer\node_modules\external-editor\node_modules\spawn-sync
> node postinstall

Installing native dependencies (this may take up to a minute)

> spawn-sync@1.0.15 postinstall C:\Users\PMK\AppData\Local\Temp\apm-install-dir-116104-7008-i1o2kb\node_modules\particle-dev-libraries\node_modules\particle-commands\node_modules\yeoman-generator\node_modules\yeoman-test\node_modules\inquirer\node_modules\external-editor\node_modules\spawn-sync
> node postinstall


npm WARN engine sb-exec@3.1.0: wanted: {"node":">=6.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine istextorbinary@2.1.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine shelljs@0.7.5: wanted: {"node":">=0.11.0","iojs":"*"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test\server\static\ie8-polyfill.js -> ../../../ie8-polyfill.js
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\PMK\\AppData\\Local\\particledev\\app-1.7.3\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\PMK\\AppData\\Local\\particledev\\app-1.7.3\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\PMK\\.particledev\\.apm\\.apmrc" "--userconfig" "C:\\Users\\PMK\\.particledev\\.apmrc" "install" "C:\\Users\\PMK\\AppData\\Local\\Temp\\d-116104-7008-1oghdn8\\package.tgz" "--target=0.36.8" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the spawn-sync@1.0.15 postinstall script 'node postinstall'.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

#6

I’m on Windows 10 with CLI and DEV installed fresh so when you get this worked out I’ll also give it a try to double confirm the install is working on a Windows 10 Machine running on a Macbook Air.


#7

VS is a dependency of Node trying to install native module spawn-sync in this case. We’ll have to figure out how to get rid of it.


#8

One more question for @RWB and @peekay123: what’s the arch (32/64) of your Windows machines?


#9

@suda, my pc is running Win10 x64.


#10

@suda I’m running Windows 10 x64 on a Macbook Air