101 Troubleshooting Yeoman Installs

So your trying to use Yeoman with Node.js and running into problems and errors? Maybe this post can help you.

“Easy with the “sudo”; Yeoman is the master around here.”

Ok so you’ve seen this error when trying to use Yeoman. “Easy with the “sudo”; Yeoman is the master around here.” Now what?

“Since yo is a user command, there is no need to execute it with superuser permissions.”

Image

Addy Osmani (Google Dev Team) wrote this on a Gist.

Addy Osmani (Google Dev Team) wrote this on a Gist.

It was suggested by ryandahl to Remove ALL /usr/ installed versions of node and install it in ~/local/.

root@server:~/node-latest-install# which node
/root/local/bin/node
root@server:~/node-latest-install# echo $NODE_PATH
/root/.nvm/v0.10.22/bin/node
root@server:~/node-latest-install#

Create a new user and stop using Root.

adduser sam
# enter password
sudo usermod -aG sudo sam
visudo
# add this line
sam    ALL=(ALL:ALL) ALL
# 'cntrl x' to exit, then enter
# logout and login as new user sam

This worked.

yeoman working

But now I got a permission denied error.

yeoman permission denied error.

# sudo chown sam:sam ~/.config/configstore/update-notifier-yo.yml
# sudo chown sam /var/www/

That fixed it. Hope this helped someone facing same issues.

helped someone facing same issues.

npm install
grunt serve

oops no ruby or compass installed!

oops no ruby or compass installed!

Using RVM:

curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled --ruby=1.9.3

. ~/.bash_profile  
//OR . ~/.profile  

source /etc/profile.d/rvm.sh
rvm install 2.0.0
rvm use 2.0.0
ruby -v

gem update --system
gem install compass

Ok that worked! =)

yeoman install working again