Roots Discourse

Roots 7.0.2 npm install fail

Guys,

I’m trying to develop some new stuff for a website that has largely been untouched since March 2016. Can’t get any grunt tasks working though, ‘npm install’ fails as well. Any ideas?

npm WARN roots@7.0.2 No license field.
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.6.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! roots@7.0.2 postinstall: `node node_modules/bower/bin/bower install && grunt dev`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the roots@7.0.2 postinstall script 'node node_modules/bower/bin/bower install && grunt dev'.
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 node_modules/bower/bin/bower install && grunt dev
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!     /Applications/MAMP/htdocs/luhtre/wp-content/themes/luhtre/npm-debug.log

Remove the postinstall script in package.json, it’s not needed. You can also try an older Node version, such as 4.5.0.