These are chat archives for jescalan/roots

Jan 2017
Mark Philip D.
Jan 03 2017 10:46

I encountered issue with roots installation with this error:

npm ERR! Darwin 13.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "roots" "-g"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9

npm ERR! roots@5.1.0 postinstall: `node ./post_install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the roots@5.1.0 postinstall script 'node ./post_install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the roots package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./post_install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs roots
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls roots
npm ERR! There is likely additional logging output above.

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

I tried everything mentioned in the docs to fix the permission error but I still end up with the same error. I have the latest node and npm installed and I can successfully install package globally, I also changed permission and restarted Terminal but all to no avail. Before I decided to quit Roots with other static gen, I gave it another shot. I cloned the repo then run npm install -g -- finally it worked! I'm a happy Roots user now.

Jeff Escalante
Jan 03 2017 17:10
haha so strange!
especially that it failed at that script, which is just console.logs to inform about analytics
perhaps it would be better to remove that script and add a note to the readme instead
i have seen this error before, but never been able to figure out why it would happen
either way glad it ended up working out @markphd