npm - yo - yeoman-environment/generator error

1.4k views Asked by At

npm ERR! peer dep missing: yeoman-environment@^3.2.0, required by [email protected]

When I check the list of npm package available with command 'npm list -g --depth=0', I get the above mentioned error.

Can someone please help me understand it?

1

There are 1 answers

0
shantanu ghosh On

It is resolved now. I have uninstalled yo and generator-code first. Then I have updated nodejs and npm version to LTS version. Then again installed yo and generator-code. It gave the same warning that required yeoman-environment was missing. I have installed yeoman-environment. Now everything is alright. I am able to use yo and generator-code.