0

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

enter image description here

Not sure how to deal with this error

DoIt
  • 3,270
  • 9
  • 51
  • 103

1 Answers1

0

Probably you are using an old version of node.

I would recommend you to use Node Version Manager

  1. Install NVM - curl https://raw.githubusercontent.com/creationix/nvm/v0.23.0/install.sh | bash
  2. Install latest node version - nvm install 0.10.35
  3. Remove your old node_modules
  4. Try to install the package again npm install -g yo
Vitalii Zurian
  • 17,858
  • 4
  • 64
  • 81