I am trying to install yo on my ubuntu machine using the following command
sudo npm install -g yo
but it threw me the an error as follows
Not sure how to deal with this error
Probably you are using an old version of node.
I would recommend you to use Node Version Manager
curl https://raw.githubusercontent.com/creationix/nvm/v0.23.0/install.sh | bash
nvm install 0.10.35
node_modules
npm install -g yo