Npm install, bower install permission issues (roots 7.0)

No closer to understanding much of this, but the following worked for me (if anyone else has this issue)…

  1. Re-ran the steps in @swalkinshaw’s post above:
  1. Make sure Node is installed (which is done)
  2. sudo npm install -g grunt-cli
  3. sudo npm install -g bower
  4. In roots dir: npm install --ignore-scripts
  5. 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.