Tutorial: Particle-cli on Mac OSX [26 Sep 2015]


#145

Sorry it should be npm list -g --depth=0 but that’s ok.

Can you:

1.) Close the terminal program
2.) Run it again and cd to the Desktop first
3.) Try npm install -g particle-cli and see what happens


#146

Sorry here it is, ran from ~/Desktop

npm list -g --depth=0
/usr/local/lib
β”œβ”€β”€ node-gyp@3.5.0
└── npm@4.1.2


#147

@kennethlimcp YOU own all my stuff, solved!

So following your advice I literally followed these steps;

I changed into the Desktop folder

cd ~/Desktop

Then I ran;

This was now the response (finally looks like it worked)

npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
/usr/local/bin/particle -> /usr/local/lib/node_modules/particle-cli/bin/particle.js

> serialport@4.0.7 install /usr/local/lib/node_modules/particle-cli/node_modules/serialport
> node-pre-gyp install --fallback-to-build

[serialport] Success: "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/build/Release/serialport.node" is installed via remote

> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/particle-cli/node_modules/spawn-sync
> node postinstall

/usr/local/lib
└─┬ particle-cli@1.20.1 
  β”œβ”€β”¬ babel-polyfill@6.23.0 
  β”‚ β”œβ”€β”€ core-js@2.4.1 
  β”‚ └── regenerator-runtime@0.10.3 
  β”œβ”€β”€ babel-runtime@6.23.0 
  β”œβ”€β”¬ binary-version-reader@0.4.0 
  β”‚ β”œβ”€β”€ buffer-crc32@0.2.13 
  β”‚ └── h5.buffers@0.1.1 
  β”œβ”€β”¬ chalk@1.1.3 
  β”‚ β”œβ”€β”€ ansi-styles@2.2.1 
  β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5 
  β”‚ β”œβ”€β”€ has-ansi@2.0.0 
  β”‚ β”œβ”€β”€ strip-ansi@3.0.1 
  β”‚ └── supports-color@2.0.0 
  β”œβ”€β”€ cli-spinner@0.2.6 
  β”œβ”€β”¬ cli-table@0.3.1 
  β”‚ └── colors@1.0.3 
  β”œβ”€β”¬ es6-promisify@4.1.0 
  β”‚ └── es6-promise@3.3.1 
  β”œβ”€β”¬ form-data@1.0.0-relativepath.2 
  β”‚ β”œβ”€β”€ async@1.5.2 
  β”‚ β”œβ”€β”¬ combined-stream@1.0.5 
  β”‚ β”‚ └── delayed-stream@1.0.0 
  β”‚ └─┬ mime-types@2.1.14 
  β”‚   └── mime-db@1.26.0 
  β”œβ”€β”¬ glob@5.0.15 
  β”‚ β”œβ”€β”¬ inflight@1.0.6 
  β”‚ β”‚ └── wrappy@1.0.2 
  β”‚ β”œβ”€β”€ inherits@2.0.3 
  β”‚ β”œβ”€β”¬ minimatch@3.0.3 
  β”‚ β”‚ └─┬ brace-expansion@1.1.6 
  β”‚ β”‚   β”œβ”€β”€ balanced-match@0.4.2 
  β”‚ β”‚   └── concat-map@0.0.1 
  β”‚ β”œβ”€β”€ once@1.4.0 
  β”‚ └── path-is-absolute@1.0.1 
  β”œβ”€β”¬ handlebars@4.0.6 
  β”‚ β”œβ”€β”¬ optimist@0.6.1 
  β”‚ β”‚ β”œβ”€β”€ minimist@0.0.10 
  β”‚ β”‚ └── wordwrap@0.0.3 
  β”‚ β”œβ”€β”¬ source-map@0.4.4 
  β”‚ β”‚ └── amdefine@1.0.1 
  β”‚ └─┬ uglify-js@2.8.12 
  β”‚   β”œβ”€β”€ source-map@0.5.6 
  β”‚   β”œβ”€β”€ uglify-to-browserify@1.0.2 
  β”‚   └─┬ yargs@3.10.0 
  β”‚     β”œβ”€β”€ camelcase@1.2.1 
  β”‚     β”œβ”€β”¬ cliui@2.1.0 
  β”‚     β”‚ β”œβ”€β”¬ center-align@0.1.3 
  β”‚     β”‚ β”‚ β”œβ”€β”¬ align-text@0.1.4 
  β”‚     β”‚ β”‚ β”‚ β”œβ”€β”¬ kind-of@3.1.0 
  β”‚     β”‚ β”‚ β”‚ β”‚ └── is-buffer@1.1.5 
  β”‚     β”‚ β”‚ β”‚ β”œβ”€β”€ longest@1.0.1 
  β”‚     β”‚ β”‚ β”‚ └── repeat-string@1.6.1 
  β”‚     β”‚ β”‚ └── lazy-cache@1.0.4 
  β”‚     β”‚ β”œβ”€β”€ right-align@0.1.3 
  β”‚     β”‚ └── wordwrap@0.0.2 
  β”‚     └── window-size@0.1.0 
  β”œβ”€β”€ hogan.js@2.0.0 
  β”œβ”€β”¬ inquirer@0.11.4 
  β”‚ β”œβ”€β”€ ansi-escapes@1.4.0 
  β”‚ β”œβ”€β”€ ansi-regex@2.1.1 
  β”‚ β”œβ”€β”¬ cli-cursor@1.0.2 
  β”‚ β”‚ └─┬ restore-cursor@1.0.1 
  β”‚ β”‚   β”œβ”€β”€ exit-hook@1.1.1 
  β”‚ β”‚   └── onetime@1.1.0 
  β”‚ β”œβ”€β”€ cli-width@1.1.1 
  β”‚ β”œβ”€β”¬ figures@1.7.0 
  β”‚ β”‚ └── object-assign@4.1.1 
  β”‚ β”œβ”€β”¬ readline2@1.0.1 
  β”‚ β”‚ β”œβ”€β”€ code-point-at@1.1.0 
  β”‚ β”‚ β”œβ”€β”€ is-fullwidth-code-point@1.0.0 
  β”‚ β”‚ └── mute-stream@0.0.5 
  β”‚ β”œβ”€β”€ run-async@0.1.0 
  β”‚ β”œβ”€β”€ rx-lite@3.1.2 
  β”‚ β”œβ”€β”€ string-width@1.0.2 
  β”‚ └── through@2.3.8 
  β”œβ”€β”¬ latest-version@2.0.0 
  β”‚ └─┬ package-json@2.4.0 
  β”‚   β”œβ”€β”¬ got@5.7.1 
  β”‚   β”‚ β”œβ”€β”¬ create-error-class@3.0.2 
  β”‚   β”‚ β”‚ └── capture-stack-trace@1.0.0 
  β”‚   β”‚ β”œβ”€β”€ duplexer2@0.1.4 
  β”‚   β”‚ β”œβ”€β”€ is-redirect@1.0.0 
  β”‚   β”‚ β”œβ”€β”€ is-retry-allowed@1.1.0 
  β”‚   β”‚ β”œβ”€β”€ is-stream@1.1.0 
  β”‚   β”‚ β”œβ”€β”€ lowercase-keys@1.0.0 
  β”‚   β”‚ β”œβ”€β”€ node-status-codes@1.0.0 
  β”‚   β”‚ β”œβ”€β”¬ parse-json@2.2.0 
  β”‚   β”‚ β”‚ └─┬ error-ex@1.3.1 
  β”‚   β”‚ β”‚   └── is-arrayish@0.2.1 
  β”‚   β”‚ β”œβ”€β”€ read-all-stream@3.1.0 
  β”‚   β”‚ β”œβ”€β”€ timed-out@3.1.3 
  β”‚   β”‚ β”œβ”€β”€ unzip-response@1.0.2 
  β”‚   β”‚ └─┬ url-parse-lax@1.0.0 
  β”‚   β”‚   └── prepend-http@1.0.4 
  β”‚   β”œβ”€β”¬ registry-auth-token@3.1.0 
  β”‚   β”‚ └─┬ rc@1.1.7 
  β”‚   β”‚   β”œβ”€β”€ minimist@1.2.0 
  β”‚   β”‚   └── strip-json-comments@2.0.1 
  β”‚   └── registry-url@3.1.0 
  β”œβ”€β”€ lodash@3.10.1 
  β”œβ”€β”€ moment@2.17.1 
  β”œβ”€β”¬ node-wifiscanner2@1.2.0 
  β”‚ └─┬ os-locale@1.4.0 
  β”‚   └─┬ lcid@1.0.0 
  β”‚     └── invert-kv@1.0.0 
  β”œβ”€β”¬ particle-api-js@6.4.3 
  β”‚ β”œβ”€β”€ form-data@1.0.0-rc4 
  β”‚ β”œβ”€β”¬ stream-http@2.2.1 
  β”‚ β”‚ β”œβ”€β”€ builtin-status-codes@2.0.0 
  β”‚ β”‚ └── to-arraybuffer@1.0.1 
  β”‚ β”œβ”€β”¬ superagent@2.3.0 
  β”‚ β”‚ β”œβ”€β”€ component-emitter@1.2.1 
  β”‚ β”‚ β”œβ”€β”€ cookiejar@2.1.0 
  β”‚ β”‚ β”œβ”€β”€ form-data@1.0.0-rc4 
  β”‚ β”‚ β”œβ”€β”€ formidable@1.1.1 
  β”‚ β”‚ β”œβ”€β”€ methods@1.1.2 
  β”‚ β”‚ β”œβ”€β”€ mime@1.3.4 
  β”‚ β”‚ β”œβ”€β”€ qs@6.4.0 
  β”‚ β”‚ └─┬ readable-stream@2.2.3 
  β”‚ β”‚   β”œβ”€β”€ buffer-shims@1.0.0 
  β”‚ β”‚   β”œβ”€β”€ isarray@1.0.0 
  β”‚ β”‚   β”œβ”€β”€ process-nextick-args@1.0.7 
  β”‚ β”‚   └── string_decoder@0.10.31 
  β”‚ └── superagent-prefix@0.0.2 
  β”œβ”€β”¬ particle-commands@0.2.9 
  β”‚ β”œβ”€β”¬ mkdirp@0.5.1 
  β”‚ β”‚ └── minimist@0.0.8 
  β”‚ β”œβ”€β”€ underscore@1.8.3 
  β”‚ └── winreg@1.2.3 
  β”œβ”€β”¬ particle-library-manager@0.1.10 
  β”‚ β”œβ”€β”€ app-root-path@1.4.0 
  β”‚ β”œβ”€β”¬ async@2.1.5 
  β”‚ β”‚ └── lodash@4.17.4 
  β”‚ β”œβ”€β”€ babel-plugin-array-includes@2.0.3 
  β”‚ β”œβ”€β”€ babel-plugin-transform-runtime@6.23.0 
  β”‚ β”œβ”€β”¬ fs-extra@0.30.0 
  β”‚ β”‚ β”œβ”€β”€ graceful-fs@4.1.11 
  β”‚ β”‚ β”œβ”€β”€ jsonfile@2.4.0 
  β”‚ β”‚ └── klaw@1.3.1 
  β”‚ β”œβ”€β”¬ gunzip-maybe@1.4.0 
  β”‚ β”‚ β”œβ”€β”¬ browserify-zlib@0.1.4 
  β”‚ β”‚ β”‚ └── pako@0.2.9 
  β”‚ β”‚ β”œβ”€β”€ is-deflate@1.0.0 
  β”‚ β”‚ β”œβ”€β”€ is-gzip@1.0.0 
  β”‚ β”‚ β”œβ”€β”¬ peek-stream@1.1.1 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ duplexify@3.5.0 
  β”‚ β”‚ β”‚ β”‚ └── stream-shift@1.0.0 
  β”‚ β”‚ β”‚ └─┬ through2@0.5.1 
  β”‚ β”‚ β”‚   β”œβ”€β”¬ readable-stream@1.0.34 
  β”‚ β”‚ β”‚   β”‚ └── isarray@0.0.1 
  β”‚ β”‚ β”‚   └── xtend@3.0.0 
  β”‚ β”‚ └── pumpify@1.3.5 
  β”‚ β”œβ”€β”¬ properties-parser@0.3.1 
  β”‚ β”‚ └── string.prototype.codepointat@0.2.0 
  β”‚ β”œβ”€β”¬ superagent@1.8.5 
  β”‚ β”‚ β”œβ”€β”€ cookiejar@2.0.6 
  β”‚ β”‚ β”œβ”€β”¬ form-data@1.0.0-rc3 
  β”‚ β”‚ β”‚ └── async@1.5.2 
  β”‚ β”‚ β”œβ”€β”€ formidable@1.0.17 
  β”‚ β”‚ β”œβ”€β”€ qs@2.3.3 
  β”‚ β”‚ β”œβ”€β”¬ readable-stream@1.0.27-1 
  β”‚ β”‚ β”‚ └── isarray@0.0.1 
  β”‚ β”‚ └── reduce-component@1.0.1 
  β”‚ β”œβ”€β”¬ tar-fs@1.15.1 
  β”‚ β”‚ β”œβ”€β”€ chownr@1.0.1 
  β”‚ β”‚ └─┬ pump@1.0.2 
  β”‚ β”‚   └─┬ end-of-stream@1.2.0 
  β”‚ β”‚     └── once@1.3.3 
  β”‚ β”œβ”€β”¬ tar-stream@1.5.2 
  β”‚ β”‚ β”œβ”€β”€ bl@1.2.0 
  β”‚ β”‚ └─┬ end-of-stream@1.0.0 
  β”‚ β”‚   └── once@1.3.3 
  β”‚ β”œβ”€β”€ tmp@0.0.28 
  β”‚ └─┬ verror@1.9.0 
  β”‚   β”œβ”€β”€ assert-plus@1.0.0 
  β”‚   β”œβ”€β”€ core-util-is@1.0.2 
  β”‚   └── extsprintf@1.3.0 
  β”œβ”€β”¬ request@2.75.1-relativepath.1 
  β”‚ β”œβ”€β”€ aws-sign2@0.6.0 
  β”‚ β”œβ”€β”€ aws4@1.6.0 
  β”‚ β”œβ”€β”¬ bl@1.1.2 
  β”‚ β”‚ └── readable-stream@2.0.6 
  β”‚ β”œβ”€β”€ caseless@0.11.0 
  β”‚ β”œβ”€β”€ extend@3.0.0 
  β”‚ β”œβ”€β”€ forever-agent@0.6.1 
  β”‚ β”œβ”€β”¬ har-validator@2.0.6 
  β”‚ β”‚ β”œβ”€β”¬ is-my-json-valid@2.16.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ generate-function@2.0.0 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ generate-object-property@1.2.0 
  β”‚ β”‚ β”‚ β”‚ └── is-property@1.0.2 
  β”‚ β”‚ β”‚ └── jsonpointer@4.0.1 
  β”‚ β”‚ └─┬ pinkie-promise@2.0.1 
  β”‚ β”‚   └── pinkie@2.0.4 
  β”‚ β”œβ”€β”¬ hawk@3.1.3 
  β”‚ β”‚ β”œβ”€β”€ boom@2.10.1 
  β”‚ β”‚ β”œβ”€β”€ cryptiles@2.0.5 
  β”‚ β”‚ β”œβ”€β”€ hoek@2.16.3 
  β”‚ β”‚ └── sntp@1.0.9 
  β”‚ β”œβ”€β”¬ http-signature@1.1.1 
  β”‚ β”‚ β”œβ”€β”€ assert-plus@0.2.0 
  β”‚ β”‚ β”œβ”€β”¬ jsprim@1.3.1 
  β”‚ β”‚ β”‚ β”œβ”€β”€ extsprintf@1.0.2 
  β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema@0.2.3 
  β”‚ β”‚ β”‚ └── verror@1.3.6 
  β”‚ β”‚ └─┬ sshpk@1.11.0 
  β”‚ β”‚   β”œβ”€β”€ bcrypt-pbkdf@1.0.1 
  β”‚ β”‚   β”œβ”€β”€ dashdash@1.14.1 
  β”‚ β”‚   β”œβ”€β”€ ecc-jsbn@0.1.1 
  β”‚ β”‚   β”œβ”€β”€ getpass@0.1.6 
  β”‚ β”‚   β”œβ”€β”€ jodid25519@1.0.2 
  β”‚ β”‚   β”œβ”€β”€ jsbn@0.1.1 
  β”‚ β”‚   └── tweetnacl@0.14.5 
  β”‚ β”œβ”€β”€ is-typedarray@1.0.0 
  β”‚ β”œβ”€β”€ isstream@0.1.2 
  β”‚ β”œβ”€β”€ json-stringify-safe@5.0.1 
  β”‚ β”œβ”€β”€ node-uuid@1.4.7 
  β”‚ β”œβ”€β”€ oauth-sign@0.8.2 
  β”‚ β”œβ”€β”€ qs@6.2.3 
  β”‚ β”œβ”€β”€ stringstream@0.0.5 
  β”‚ β”œβ”€β”¬ tough-cookie@2.3.2 
  β”‚ β”‚ └── punycode@1.4.1 
  β”‚ └── tunnel-agent@0.4.3 
  β”œβ”€β”€ semver@5.3.0 
  β”œβ”€β”¬ serialport@4.0.7 
  β”‚ β”œβ”€β”€ bindings@1.2.1 
  β”‚ β”œβ”€β”¬ commander@2.9.0 
  β”‚ β”‚ └── graceful-readlink@1.0.1 
  β”‚ β”œβ”€β”¬ debug@2.6.2 
  β”‚ β”‚ └── ms@0.7.2 
  β”‚ β”œβ”€β”¬ lie@3.1.1 
  β”‚ β”‚ └── immediate@3.0.6 
  β”‚ β”œβ”€β”€ nan@2.5.1 
  β”‚ β”œβ”€β”¬ node-pre-gyp@0.6.32 
  β”‚ β”‚ β”œβ”€β”¬ mkdirp@0.5.1 
  β”‚ β”‚ β”‚ └── minimist@0.0.8 
  β”‚ β”‚ β”œβ”€β”¬ nopt@3.0.6 
  β”‚ β”‚ β”‚ └── abbrev@1.0.9 
  β”‚ β”‚ β”œβ”€β”¬ npmlog@4.0.1 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ are-we-there-yet@1.1.2 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ delegates@1.0.0 
  β”‚ β”‚ β”‚ β”‚ └─┬ readable-stream@2.2.2 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ buffer-shims@1.0.0 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ core-util-is@1.0.2 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ inherits@2.0.3 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ isarray@1.0.0 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ process-nextick-args@1.0.7 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ string_decoder@0.10.31 
  β”‚ β”‚ β”‚ β”‚   └── util-deprecate@1.0.2 
  β”‚ β”‚ β”‚ β”œβ”€β”€ console-control-strings@1.1.0 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ gauge@2.7.2 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ aproba@1.0.4 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ has-unicode@2.0.1 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ object-assign@4.1.0 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ signal-exit@3.0.2 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ string-width@1.0.2 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ code-point-at@1.1.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ └─┬ is-fullwidth-code-point@1.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚   └── number-is-nan@1.0.1 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ strip-ansi@3.0.1 
  β”‚ β”‚ β”‚ β”‚ β”‚ └── ansi-regex@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ supports-color@0.2.0 
  β”‚ β”‚ β”‚ β”‚ └── wide-align@1.1.0 
  β”‚ β”‚ β”‚ └── set-blocking@2.0.0 
  β”‚ β”‚ β”œβ”€β”¬ rc@1.1.6 
  β”‚ β”‚ β”‚ β”œβ”€β”€ deep-extend@0.4.1 
  β”‚ β”‚ β”‚ β”œβ”€β”€ ini@1.3.4 
  β”‚ β”‚ β”‚ β”œβ”€β”€ minimist@1.2.0 
  β”‚ β”‚ β”‚ └── strip-json-comments@1.0.4 
  β”‚ β”‚ β”œβ”€β”¬ request@2.79.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ aws-sign2@0.6.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ aws4@1.5.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ caseless@0.11.0 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ combined-stream@1.0.5 
  β”‚ β”‚ β”‚ β”‚ └── delayed-stream@1.0.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ extend@3.0.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ forever-agent@0.6.1 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ form-data@2.1.2 
  β”‚ β”‚ β”‚ β”‚ └── asynckit@0.4.0 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ har-validator@2.0.6 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ chalk@1.1.3 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ ansi-styles@2.2.1 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ has-ansi@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── ansi-regex@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ strip-ansi@3.0.1 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── ansi-regex@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ └── supports-color@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ is-my-json-valid@2.15.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ generate-function@2.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ generate-object-property@1.2.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── is-property@1.0.2 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ jsonpointer@4.0.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ └── xtend@4.0.1 
  β”‚ β”‚ β”‚ β”‚ └─┬ pinkie-promise@2.0.1 
  β”‚ β”‚ β”‚ β”‚   └── pinkie@2.0.4 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ hawk@3.1.3 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ boom@2.10.1 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ cryptiles@2.0.5 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ hoek@2.16.3 
  β”‚ β”‚ β”‚ β”‚ └── sntp@1.0.9 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ http-signature@1.1.1 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ assert-plus@0.2.0 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ jsprim@1.3.1 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ extsprintf@1.0.2 
  β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema@0.2.3 
  β”‚ β”‚ β”‚ β”‚ β”‚ └── verror@1.3.6 
  β”‚ β”‚ β”‚ β”‚ └─┬ sshpk@1.10.1 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ asn1@0.2.3 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ assert-plus@1.0.0 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ bcrypt-pbkdf@1.0.0 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ dashdash@1.14.1 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ ecc-jsbn@0.1.1 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ getpass@0.1.6 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ jodid25519@1.0.2 
  β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ jsbn@0.1.0 
  β”‚ β”‚ β”‚ β”‚   └── tweetnacl@0.14.4 
  β”‚ β”‚ β”‚ β”œβ”€β”€ is-typedarray@1.0.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ isstream@0.1.2 
  β”‚ β”‚ β”‚ β”œβ”€β”€ json-stringify-safe@5.0.1 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ mime-types@2.1.13 
  β”‚ β”‚ β”‚ β”‚ └── mime-db@1.25.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ oauth-sign@0.8.2 
  β”‚ β”‚ β”‚ β”œβ”€β”€ qs@6.3.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ stringstream@0.0.5 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ tough-cookie@2.3.2 
  β”‚ β”‚ β”‚ β”‚ └── punycode@1.4.1 
  β”‚ β”‚ β”‚ β”œβ”€β”€ tunnel-agent@0.4.3 
  β”‚ β”‚ β”‚ └── uuid@3.0.1 
  β”‚ β”‚ β”œβ”€β”¬ rimraf@2.5.4 
  β”‚ β”‚ β”‚ └─┬ glob@7.1.1 
  β”‚ β”‚ β”‚   β”œβ”€β”€ fs.realpath@1.0.0 
  β”‚ β”‚ β”‚   β”œβ”€β”¬ inflight@1.0.6 
  β”‚ β”‚ β”‚   β”‚ └── wrappy@1.0.2 
  β”‚ β”‚ β”‚   β”œβ”€β”€ inherits@2.0.3 
  β”‚ β”‚ β”‚   β”œβ”€β”¬ minimatch@3.0.3 
  β”‚ β”‚ β”‚   β”‚ └─┬ brace-expansion@1.1.6 
  β”‚ β”‚ β”‚   β”‚   β”œβ”€β”€ balanced-match@0.4.2 
  β”‚ β”‚ β”‚   β”‚   └── concat-map@0.0.1 
  β”‚ β”‚ β”‚   β”œβ”€β”¬ once@1.4.0 
  β”‚ β”‚ β”‚   β”‚ └── wrappy@1.0.2 
  β”‚ β”‚ β”‚   └── path-is-absolute@1.0.1 
  β”‚ β”‚ β”œβ”€β”€ semver@5.3.0 
  β”‚ β”‚ β”œβ”€β”¬ tar@2.2.1 
  β”‚ β”‚ β”‚ β”œβ”€β”€ block-stream@0.0.9 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ fstream@1.0.10 
  β”‚ β”‚ β”‚ β”‚ └── graceful-fs@4.1.11 
  β”‚ β”‚ β”‚ └── inherits@2.0.3 
  β”‚ β”‚ └─┬ tar-pack@3.3.0 
  β”‚ β”‚   β”œβ”€β”¬ debug@2.2.0 
  β”‚ β”‚   β”‚ └── ms@0.7.1 
  β”‚ β”‚   β”œβ”€β”¬ fstream@1.0.10 
  β”‚ β”‚   β”‚ β”œβ”€β”€ graceful-fs@4.1.11 
  β”‚ β”‚   β”‚ └── inherits@2.0.3 
  β”‚ β”‚   β”œβ”€β”¬ fstream-ignore@1.0.5 
  β”‚ β”‚   β”‚ β”œβ”€β”€ inherits@2.0.3 
  β”‚ β”‚   β”‚ └─┬ minimatch@3.0.3 
  β”‚ β”‚   β”‚   └─┬ brace-expansion@1.1.6 
  β”‚ β”‚   β”‚     β”œβ”€β”€ balanced-match@0.4.2 
  β”‚ β”‚   β”‚     └── concat-map@0.0.1 
  β”‚ β”‚   β”œβ”€β”¬ once@1.3.3 
  β”‚ β”‚   β”‚ └── wrappy@1.0.2 
  β”‚ β”‚   β”œβ”€β”¬ readable-stream@2.1.5 
  β”‚ β”‚   β”‚ β”œβ”€β”€ buffer-shims@1.0.0 
  β”‚ β”‚   β”‚ β”œβ”€β”€ core-util-is@1.0.2 
  β”‚ β”‚   β”‚ β”œβ”€β”€ inherits@2.0.3 
  β”‚ β”‚   β”‚ β”œβ”€β”€ isarray@1.0.0 
  β”‚ β”‚   β”‚ β”œβ”€β”€ process-nextick-args@1.0.7 
  β”‚ β”‚   β”‚ β”œβ”€β”€ string_decoder@0.10.31 
  β”‚ β”‚   β”‚ └── util-deprecate@1.0.2 
  β”‚ β”‚   └── uid-number@0.0.6 
  β”‚ └─┬ object.assign@4.0.4 
  β”‚   β”œβ”€β”¬ define-properties@1.1.2 
  β”‚   β”‚ └── foreach@2.0.5 
  β”‚   β”œβ”€β”€ function-bind@1.1.0 
  β”‚   └── object-keys@1.0.11 
  β”œβ”€β”¬ softap-setup@1.1.4 
  β”‚ β”œβ”€β”¬ nconf@0.7.2 
  β”‚ β”‚ β”œβ”€β”€ async@0.9.2 
  β”‚ β”‚ β”œβ”€β”€ ini@1.3.4 
  β”‚ β”‚ └─┬ yargs@3.15.0 
  β”‚ β”‚   └── window-size@0.1.4 
  β”‚ └─┬ node-rsa@0.2.30 
  β”‚   β”œβ”€β”€ asn1@0.2.3 
  β”‚   └── lodash@3.3.0 
  β”œβ”€β”¬ temp@0.8.3 
  β”‚ β”œβ”€β”€ os-tmpdir@1.0.2 
  β”‚ └── rimraf@2.2.8 
  β”œβ”€β”€ when@3.7.8 
  β”œβ”€β”€ xtend@4.0.1 
  β”œβ”€β”¬ yargs@5.0.0 
  β”‚ β”œβ”€β”¬ cliui@3.2.0 
  β”‚ β”‚ └── wrap-ansi@2.1.0 
  β”‚ β”œβ”€β”€ decamelize@1.2.0 
  β”‚ β”œβ”€β”€ get-caller-file@1.0.2 
  β”‚ β”œβ”€β”€ lodash.assign@4.2.0 
  β”‚ β”œβ”€β”¬ read-pkg-up@1.0.1 
  β”‚ β”‚ └─┬ read-pkg@1.1.0 
  β”‚ β”‚   β”œβ”€β”€ load-json-file@1.1.0 
  β”‚ β”‚   β”œβ”€β”¬ normalize-package-data@2.3.6 
  β”‚ β”‚   β”‚ β”œβ”€β”€ hosted-git-info@2.2.0 
  β”‚ β”‚   β”‚ β”œβ”€β”¬ is-builtin-module@1.0.0 
  β”‚ β”‚   β”‚ β”‚ └── builtin-modules@1.1.1 
  β”‚ β”‚   β”‚ └─┬ validate-npm-package-license@3.0.1 
  β”‚ β”‚   β”‚   β”œβ”€β”¬ spdx-correct@1.0.2 
  β”‚ β”‚   β”‚   β”‚ └── spdx-license-ids@1.2.2 
  β”‚ β”‚   β”‚   └── spdx-expression-parse@1.0.4 
  β”‚ β”‚   └── path-type@1.1.0 
  β”‚ β”œβ”€β”€ require-directory@2.1.1 
  β”‚ β”œβ”€β”€ require-main-filename@1.0.1 
  β”‚ β”œβ”€β”€ set-blocking@2.0.0 
  β”‚ β”œβ”€β”€ which-module@1.0.0 
  β”‚ β”œβ”€β”€ window-size@0.2.0 
  β”‚ β”œβ”€β”€ y18n@3.2.1 
  β”‚ └─┬ yargs-parser@3.2.0 
  β”‚   └── camelcase@3.0.0 
  β”œβ”€β”¬ yeoman-environment@1.6.6 
  β”‚ β”œβ”€β”€ diff@2.2.3 
  β”‚ β”œβ”€β”¬ globby@4.1.0 
  β”‚ β”‚ β”œβ”€β”¬ array-union@1.0.2 
  β”‚ β”‚ β”‚ └── array-uniq@1.0.3 
  β”‚ β”‚ β”œβ”€β”€ arrify@1.0.1 
  β”‚ β”‚ β”œβ”€β”€ glob@6.0.4 
  β”‚ β”‚ └── pify@2.3.0 
  β”‚ β”œβ”€β”¬ grouped-queue@0.3.3 
  β”‚ β”‚ └── lodash@4.17.4 
  β”‚ β”œβ”€β”¬ inquirer@1.2.3 
  β”‚ β”‚ β”œβ”€β”€ cli-width@2.1.0 
  β”‚ β”‚ β”œβ”€β”¬ external-editor@1.1.1 
  β”‚ β”‚ β”‚ β”œβ”€β”¬ spawn-sync@1.0.15 
  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ concat-stream@1.6.0 
  β”‚ β”‚ β”‚ β”‚ β”‚ └── typedarray@0.0.6 
  β”‚ β”‚ β”‚ β”‚ └── os-shim@0.1.3 
  β”‚ β”‚ β”‚ └── tmp@0.0.29 
  β”‚ β”‚ β”œβ”€β”€ mute-stream@0.0.6 
  β”‚ β”‚ β”œβ”€β”€ run-async@2.3.0 
  β”‚ β”‚ └── rx@4.1.0 
  β”‚ β”œβ”€β”€ lodash@4.17.4 
  β”‚ β”œβ”€β”€ log-symbols@1.0.2 
  β”‚ β”œβ”€β”¬ mem-fs@1.1.3 
  β”‚ β”‚ β”œβ”€β”¬ vinyl@1.2.0 
  β”‚ β”‚ β”‚ β”œβ”€β”€ clone@1.0.2 
  β”‚ β”‚ β”‚ β”œβ”€β”€ clone-stats@0.0.1 
  β”‚ β”‚ β”‚ └── replace-ext@0.0.1 
  β”‚ β”‚ └─┬ vinyl-file@2.0.0 
  β”‚ β”‚   β”œβ”€β”¬ strip-bom@2.0.0 
  β”‚ β”‚   β”‚ └── is-utf8@0.2.1 
  β”‚ β”‚   └─┬ strip-bom-stream@2.0.0 
  β”‚ β”‚     └── first-chunk-stream@2.0.0 
  β”‚ β”œβ”€β”€ text-table@0.2.0 
  β”‚ └─┬ untildify@2.1.0 
  β”‚   └── os-homedir@1.0.2 
  └─┬ yeoman-generator@0.24.1 
    β”œβ”€β”€ async@2.1.5 
    β”œβ”€β”¬ class-extend@0.1.2 
    β”‚ └── object-assign@2.1.1 
    β”œβ”€β”¬ cross-spawn@4.0.2 
    β”‚ β”œβ”€β”¬ lru-cache@4.0.2 
    β”‚ β”‚ β”œβ”€β”€ pseudomap@1.0.2 
    β”‚ β”‚ └── yallist@2.1.0 
    β”‚ └─┬ which@1.2.12 
    β”‚   └── isexe@1.1.2 
    β”œβ”€β”¬ dargs@4.1.0 
    β”‚ └── number-is-nan@1.0.1 
    β”œβ”€β”¬ dateformat@1.0.12 
    β”‚ β”œβ”€β”€ get-stdin@4.0.1 
    β”‚ └─┬ meow@3.7.0 
    β”‚   β”œβ”€β”¬ camelcase-keys@2.1.0 
    β”‚   β”‚ └── camelcase@2.1.1 
    β”‚   β”œβ”€β”¬ loud-rejection@1.6.0 
    β”‚   β”‚ β”œβ”€β”¬ currently-unhandled@0.4.1 
    β”‚   β”‚ β”‚ └── array-find-index@1.0.2 
    β”‚   β”‚ └── signal-exit@3.0.2 
    β”‚   β”œβ”€β”€ map-obj@1.0.1 
    β”‚   β”œβ”€β”€ minimist@1.2.0 
    β”‚   β”œβ”€β”¬ redent@1.0.0 
    β”‚   β”‚ β”œβ”€β”¬ indent-string@2.1.0 
    β”‚   β”‚ β”‚ └─┬ repeating@2.0.1 
    β”‚   β”‚ β”‚   └── is-finite@1.0.2 
    β”‚   β”‚ └── strip-indent@1.0.1 
    β”‚   └── trim-newlines@1.0.0 
    β”œβ”€β”€ detect-conflict@1.0.1 
    β”œβ”€β”¬ error@7.0.2 
    β”‚ └── string-template@0.2.1 
    β”œβ”€β”€ find-up@1.1.2 
    β”œβ”€β”¬ github-username@2.1.0 
    β”‚ └── gh-got@2.4.0 
    β”œβ”€β”¬ glob@7.1.1 
    β”‚ └── fs.realpath@1.0.0 
    β”œβ”€β”¬ gruntfile-editor@1.2.1 
    β”‚ β”œβ”€β”¬ ast-query@2.0.0 
    β”‚ β”‚ β”œβ”€β”¬ acorn-jsx@3.0.1 
    β”‚ β”‚ β”‚ └── acorn@3.3.0 
    β”‚ β”‚ β”œβ”€β”¬ escodegen-wallaby@1.6.10 
    β”‚ β”‚ β”‚ β”œβ”€β”€ esprima@2.7.3 
    β”‚ β”‚ β”‚ β”œβ”€β”€ estraverse@1.9.3 
    β”‚ β”‚ β”‚ β”œβ”€β”€ esutils@2.0.2 
    β”‚ β”‚ β”‚ β”œβ”€β”¬ optionator@0.8.2 
    β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ deep-is@0.1.3 
    β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ fast-levenshtein@2.0.6 
    β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ levn@0.3.0 
    β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ prelude-ls@1.1.2 
    β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ type-check@0.3.2 
    β”‚ β”‚ β”‚ β”‚ └── wordwrap@1.0.0 
    β”‚ β”‚ β”‚ └── source-map@0.2.0 
    β”‚ β”‚ β”œβ”€β”€ lodash@4.17.4 
    β”‚ β”‚ └── traverse@0.6.6 
    β”‚ └── lodash@4.17.4 
    β”œβ”€β”¬ html-wiring@1.2.0 
    β”‚ β”œβ”€β”¬ cheerio@0.19.0 
    β”‚ β”‚ β”œβ”€β”¬ css-select@1.0.0 
    β”‚ β”‚ β”‚ β”œβ”€β”€ boolbase@1.0.0 
    β”‚ β”‚ β”‚ β”œβ”€β”€ css-what@1.0.0 
    β”‚ β”‚ β”‚ β”œβ”€β”€ domutils@1.4.3 
    β”‚ β”‚ β”‚ └── nth-check@1.0.1 
    β”‚ β”‚ β”œβ”€β”¬ dom-serializer@0.1.0 
    β”‚ β”‚ β”‚ └── domelementtype@1.1.3 
    β”‚ β”‚ β”œβ”€β”€ entities@1.1.1 
    β”‚ β”‚ └─┬ htmlparser2@3.8.3 
    β”‚ β”‚   β”œβ”€β”€ domelementtype@1.3.0 
    β”‚ β”‚   β”œβ”€β”€ domhandler@2.3.0 
    β”‚ β”‚   β”œβ”€β”€ domutils@1.5.1 
    β”‚ β”‚   β”œβ”€β”€ entities@1.0.0 
    β”‚ β”‚   └─┬ readable-stream@1.1.14 
    β”‚ β”‚     └── isarray@0.0.1 
    β”‚ └─┬ detect-newline@1.0.3 
    β”‚   └── minimist@1.2.0 
    β”œβ”€β”¬ istextorbinary@2.1.0 
    β”‚ β”œβ”€β”€ binaryextensions@2.0.0 
    β”‚ β”œβ”€β”€ editions@1.3.3 
    β”‚ └── textextensions@2.0.1 
    β”œβ”€β”€ lodash@4.17.4 
    β”œβ”€β”¬ mem-fs-editor@2.3.0 
    β”‚ β”œβ”€β”€ commondir@1.0.1 
    β”‚ β”œβ”€β”€ deep-extend@0.4.1 
    β”‚ β”œβ”€β”€ ejs@2.5.6 
    β”‚ β”œβ”€β”€ glob@7.1.1 
    β”‚ └─┬ multimatch@2.1.0 
    β”‚   └── array-differ@1.0.0 
    β”œβ”€β”¬ nopt@3.0.6 
    β”‚ └── abbrev@1.1.0 
    β”œβ”€β”€ path-exists@2.1.0 
    β”œβ”€β”€ pretty-bytes@3.0.1 
    β”œβ”€β”€ read-chunk@1.0.1 
    β”œβ”€β”¬ rimraf@2.6.1 
    β”‚ └── glob@7.1.1 
    β”œβ”€β”¬ run-async@2.3.0 
    β”‚ └── is-promise@2.1.0 
    β”œβ”€β”¬ shelljs@0.7.7 
    β”‚ β”œβ”€β”€ glob@7.1.1 
    β”‚ β”œβ”€β”€ interpret@1.0.1 
    β”‚ └─┬ rechoir@0.6.2 
    β”‚   └─┬ resolve@1.3.2 
    β”‚     └── path-parse@1.0.5 
    β”œβ”€β”€ through2@2.0.3 
    β”œβ”€β”¬ underscore.string@3.3.4 
    β”‚ β”œβ”€β”€ sprintf-js@1.0.3 
    β”‚ └── util-deprecate@1.0.2 
    β”œβ”€β”€ user-home@2.0.0 
    β”œβ”€β”€ yeoman-assert@2.2.3 
    β”œβ”€β”¬ yeoman-test@1.6.0 
    β”‚ β”œβ”€β”¬ inquirer@1.2.3 
    β”‚ β”‚ β”œβ”€β”€ cli-width@2.1.0 
    β”‚ β”‚ β”œβ”€β”€ mute-stream@0.0.6 
    β”‚ β”‚ └── run-async@2.3.0 
    β”‚ β”œβ”€β”€ lodash@4.17.4 
    β”‚ └─┬ sinon@1.17.7 
    β”‚   β”œβ”€β”€ formatio@1.1.1 
    β”‚   β”œβ”€β”€ lolex@1.3.2 
    β”‚   β”œβ”€β”€ samsam@1.1.2 
    β”‚   └─┬ util@0.10.3 
    β”‚     └── inherits@2.0.1 
    └── yeoman-welcome@1.0.1 

Look like it has finally worked;

****:Desktop noofny$ particle

Welcome to the Particle Command line utility!
Version 1.20.1
https://github.com/spark/particle-cli

[SOLVED] Photon no longer can "become online"
#148

Perfect :wink:


#149

@kennethlimcp - when a stranger steps in and shares the pain of a n00b for nothing more than to help another, you realise you are in a true community.

Thank you for your time listening and guiding. For you or anyone else, if there’s anything I have left out from the resolution here for others, call it out so I can stick in here.


#150

Hello @kennethlimcp,

I am having some serious issues with installingnpm install -g particle-cli. I have tried all of the above numerous times and am at a loss. Here is my most recent effort based upon what you had gone through with noofny above. Would you be able to help me resolve this? Please help!

brain:~ Zeytin$ cd ~/Desktop
brain:Desktop Zeytin$ npm install -g particle-cli

/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:6
let url
^^^
SyntaxError: Unexpected strict mode reserved word
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/access.js:5:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
brain:Desktop Zeytin$


#151

Weird errors. What does node --version say?


#152

Hi @kennethlimcp

Thank you for the reply! I am stumped and have tried many different things over the last few weeks but no luck.

Version is v0.10.29


#153

The recommended is higher than v0.10.29 you might want to upgrade nodejs here: https://nodejs.org/en/download/

and try to install again.


#154

Hi @kennethlimcp

Tried to install the latest version before but had no luck so I saw above that folks were trying the v.0.10.29 with success so I tried that. I just downloaded the current version and this is the reply from Terminal:

brain:~ Zeytin$ sudo npm install -g particle-cli
Password:
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> …/…/…/ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> …/…/…/ie8-polyfill.js
/usr/local/bin/particle -> /usr/local/lib/node_modules/particle-cli/bin/particle.js
/usr/local/lib
└─┬ particle-cli@1.23.1
β”œβ”€β”€ form-data@1.0.0-relativepath.2
β”œβ”€β”¬ particle-api-js@6.5.0
β”‚ β”œβ”€β”€ form-data@1.0.0-rc4
β”‚ └── stream-http@2.2.1
└── request@2.75.1-relativepath.1


#155

what does particle --version say?


#156

brain:~ Zeytin$ particle --version
! Error loading module β€˜serialport’: Module version mismatch. Expected 48, got 57.
Please reinstall the CLI again using npm install -g particle-cli
cliftons-brain:~ Zeytin$ npm install -g particle-cli
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> …/…/…/ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/particle-cli
/usr/local/lib
└── particle-cli@1.23.1

npm ERR! Darwin 16.6.0
npm ERR! argv β€œ/usr/local/bin/node” β€œ/usr/local/bin/npm” β€œinstall” β€œ-g” "particle-cli"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/particle-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: β€˜EACCES’,
npm ERR! syscall: β€˜access’,
npm ERR! path: β€˜/usr/local/lib/node_modules/particle-cli’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Zeytin/npm-debug.log


#157

do a npm uninstall -g particle-cli followed by npm install -g particle-cli again to see if it works.

You also need to fix the permissions issue for npm with the instructions here: https://docs.npmjs.com/getting-started/fixing-npm-permissions


#158

Ok, I just did the uninstall and wow there was a lot of verbiage! then tried the install and got the below… I’ll try the link in just a moment.

brain:~ Zeytin$ npm install -g particle-cli
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> …/…/…/ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/particle-cli
/usr/local/lib
└── particle-cli@1.23.1

npm ERR! Darwin 16.6.0
npm ERR! argv β€œ/usr/local/bin/node” β€œ/usr/local/bin/npm” β€œinstall” β€œ-g” "particle-cli"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/particle-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: β€˜EACCES’,
npm ERR! syscall: β€˜access’,
npm ERR! path: β€˜/usr/local/lib/node_modules/particle-cli’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Zeytin/npm-debug.log


#159

Hi @kennethlimcp,

I did this today actually. I will certainly do it again but which option do you think is best? I did the first option on the video earlier. Should I try the option 3?


#160

Tried the 3rd option (brew install) The below was the outcome… Sorry I am sure this is super annoying but I really do appreciate it and this has been halting my progress.

brain:~ Zeytin$ /usr/bin/ruby -e β€œ$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Zeytin /Library/Caches/Homebrew
==> Downloading and installing Homebrew…
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
HEAD is now at 1cae6dd6 Merge pull request #2997 from ilovezfs/non-libraries
Updated 1 tap (homebrew/core).
==> Cleaning up /Library/Caches/Homebrew…
==> Migrating /Library/Caches/Homebrew to /Users/Zeytin/Library/Caches/Homebrew.
==> Deleting /Library/Caches/Homebrew…
==> Updated Formulae
imagemagick imagemagick@6 kubernetes-cli node-build
==> Installation successful!

==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
http://docs.brew.sh/Analytics.html

==> Next steps:

brain:~ Zeytin$ brew install node
Warning: node 8.2.1 is already installed, it’s just not linked.
You can use brew link node to link this version.

brain:~ Zeytin$ npm install -g particle-cli
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> …/…/…/ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/particle-cli
/usr/local/lib
└── particle-cli@1.23.1

npm ERR! Darwin 16.6.0
npm ERR! argv β€œ/usr/local/bin/node” β€œ/usr/local/bin/npm” β€œinstall” β€œ-g” "particle-cli"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/particle-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/particle-cli’
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: β€˜EACCES’,
npm ERR! syscall: β€˜access’,
npm ERR! path: β€˜/usr/local/lib/node_modules/particle-cli’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Zeytin/npm-debug.log


#161

Try sudo npm install -g particle-cli


#162

Hi @kennethlimcp,

Thank you for the reply. Here is what the outcome is:


brain:~ Zeytin$ sudo npm install -g particle-cli
Password:
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/usr/local/bin/particle -> /usr/local/lib/node_modules/particle-cli/bin/particle.js
/usr/local/lib
└── particle-cli@1.23.1 

Does that mean it was successful?


#163

Try with particle --version


#164

Says 1.23.1

So we did it?!?