Npm install particle-cli not working on mac os x el capitan

Last login: Mon Oct 2 23:54:29 on ttys000
Davids-MacBook-Pro:~ daviddefilippis$ sudo npm uninstall -g --unsafe-perm particle-cli serialport node-pre-gyp
Password:
Sorry, try again.
Password:
removed 766 packages in 6.775s
Davids-MacBook-Pro:~ daviddefilippis$ sudo npm install -g --unsafe-perm particle-cli
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

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

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/bin/node',
node-pre-gyp verb cli '/usr/local/lib/node_modules/particle-cli/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@6.9.1 | darwin | x64
node-pre-gyp verb command install
node-pre-gyp info check checked for "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-darwin-x64.tar.gz
node-pre-gyp http 200 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-darwin-x64.tar.gz
node-pre-gyp info install unpacking .deps/
node-pre-gyp info install unpacking .deps/Release/
node-pre-gyp info install unpacking .deps/Release/obj.target/
node-pre-gyp info install unpacking .deps/Release/obj.target/serialport/
node-pre-gyp info install unpacking .deps/Release/obj.target/serialport/src/
node-pre-gyp info install unpacking .deps/Release/obj.target/serialport/src/serialport.o.d
node-pre-gyp info install unpacking .deps/Release/obj.target/serialport/src/serialport_poller.o.d
node-pre-gyp info install unpacking .deps/Release/obj.target/serialport/src/serialport_unix.o.d
node-pre-gyp info install unpacking .deps/Release/serialport.node.d
node-pre-gyp info install unpacking obj.target/
node-pre-gyp info install unpacking obj.target/serialport/
node-pre-gyp info install unpacking obj.target/serialport/src/
node-pre-gyp info install unpacking obj.target/serialport/src/serialport.o
node-pre-gyp info install unpacking obj.target/serialport/src/serialport_poller.o
node-pre-gyp info install unpacking obj.target/serialport/src/serialport_unix.o
node-pre-gyp info install unpacking serialport.node
node-pre-gyp info tarball done parsing tarball
node-pre-gyp info validate Running test command: '/usr/local/bin/node --eval 'require('/usr/local/lib/node_modules/particle-cli/node_modules/serialport/build/Release/serialport.node')''
[serialport] Success: "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/build/Release/serialport.node" is installed via remote
node-pre-gyp info ok

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

  • particle-cli@1.24.1
    added 538 packages in 23.128s
    Davids-MacBook-Pro:~ daviddefilippis$ particle help

Welcome to the Particle Command line utility!
Version 1.24.1

Usage: particle <command_name>
Common Commands:

setup, list, call, get, device, identify, flash, subscribe
compile, monitor, login, logout, help, library

Less Common Commands:
token, binary, cloud, config, doctor, function, keys
serial, udp, update, variable, webhook, wireless

For more information Run: particle help <command_name>

Davids-MacBook-Pro:~ daviddefilippis$

Thanks for the help, looks like I'm finally up and running.
Hopefully if anyone else has this issue they come across this thread and it's still relevant.

1 Like

Now that I have had a chance to start working with the command line it seems like I am having an issue with serialport operating properly. I have a photon connected via USB and it is in the blue flashing “listening mode”.

Davids-MacBook-Pro:~ daviddefilippis$ system_profiler SPUSBDataType
2017-10-09 11:21:51.466 system_profiler[30173:3613593] SPUSBDevice: IOServiceGetMatchingService did not return anything for location 0x14100000
2017-10-09 11:21:51.466 system_profiler[30173:3613593] SPUSBDevice: IOServiceGetMatchingService did not return anything for location 0x14100000
USB:

USB 3.0 Bus:

  Host Controller Driver: AppleUSBXHCILPT
  PCI Device ID: 0x9c31 
  PCI Revision ID: 0x0004 
  PCI Vendor ID: 0x8086 

    Apple Internal Keyboard / Trackpad:

      Product ID: 0x0259
      Vendor ID: 0x05ac  (Apple Inc.)
      Version: 2.24
      Speed: Up to 12 Mb/sec
      Manufacturer: Apple Inc.
      Location ID: 0x14400000 / 2
      Current Available (mA): 500
      Current Required (mA): 40
      Extra Operating Current (mA): 0
      Built-In: Yes

    BRCM20702 Hub:

      Product ID: 0x4500
      Vendor ID: 0x0a5c  (Broadcom Corp.)
      Version: 1.00
      Speed: Up to 12 Mb/sec
      Manufacturer: Apple Inc.
      Location ID: 0x14300000 / 3
      Current Available (mA): 500
      Current Required (mA): 94
      Extra Operating Current (mA): 0
      Built-In: Yes

        Bluetooth USB Host Controller:

          Product ID: 0x8289
          Vendor ID: 0x05ac  (Apple Inc.)
          Version: 1.37
          Speed: Up to 12 Mb/sec
          Manufacturer: Apple Inc.
          Location ID: 0x14330000 / 4
          Current Available (mA): 500
          Current Required (mA): 0
          Extra Operating Current (mA): 0
          Built-In: Yes

    Photon:

      Product ID: 0xc006
      Vendor ID: 0x2b04
      Version: 2.50
      Serial Number: 210035000347343337373737
      Manufacturer: Particle
      Location ID: 0x14100000

    FT232R USB UART:

      Product ID: 0x6001
      Vendor ID: 0x0403  (Future Technology Devices International Limited)
      Version: 6.00
      Serial Number: A4039961
      Manufacturer: FTDI
      Location ID: 0x14100000

Davids-MacBook-Pro:~ daviddefilippis$ particle serial wifi

! serial: No serial port identified

Davids-MacBook-Pro:~ daviddefilippis$ po photon setup

Connect your device and put it into Listening mode. Press [ENTER] to continue…

! serial: No serial port identified

We will now connect your photon to Wi-Fi. Press [ENTER] to continue…

! serial: No serial port identified

You should now be able to claim your device. Please run
"particle device add Device_ID", using the Device_ID we found above.

Davids-MacBook-Pro:~ daviddefilippis$

Unplugged usb cable from laptop and plugged into different port of same laptop and it works…weird.