No closer to understanding much of this, but the following worked for me (if anyone else has this issue)…
- Re-ran the steps in @swalkinshaw’s post above:
- Make sure Node is installed (which is done)
- sudo npm install -g grunt-cli
- sudo npm install -g bower
- In roots dir: npm install --ignore-scripts
- In roots dir: bower install
There are errors at step 4, but I just ignored them. Ran bower install, which complained but still completed. Then rant grunt and got “/usr/bin/env: node: No such file or directory”.
After some more headaches, I ran which nodejs (“/usr/bin/nodejs” for me). Then put a simlink to that in the place where grunt was looking.
sudo ln -s /usr/bin/nodejs /usr/bin/node
Now grunt works as it should I think! Not really sure if what I’m doing is ideal.