Hello you beautiful people,
I have gotten a new computer and wanted to jump back into making lack luster projects with my photon. I want to install all the tools on the new (to me) computer but am running into issues.
The issue comes when I type
npm install -g particle-cli
I get this error code after the command line does its thing:
gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:200:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/usr/local/Cellar/node/12.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/Cellar/node/12.5.0/lib/node_modules/particle-cli/node_modules/@serialport/bindings gyp ERR! node -v v12.5.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: email@example.com (node_modules/particle-cli/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: firstname.lastname@example.org install: `node install` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @email@example.com install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @firstname.lastname@example.org install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/MacHome/.npm/_logs/2019-07-08T01_35_58_849Z-debug.log
from what i’ve seen it seems like a permissions issue. Any insight is greaty appreciated.
Mac OS Mojave 10.14.5
Homebrew version - 2.1.6
Node version - 12.5.0