'How do I solve an issue installing yeoman generator in vscode

when installing yeoman generator in vscode, in a terminal on windows 10 PC, I run the command below

npm i -g yo generator-code

I get the below message saying everything is okay but with a WARN message npm WARN [email protected] requires a peer of yeoman-environment@^3.2.0 but none is installed

How do I install the peer dependencies. has anyone experienced this issue

√ Node.js version √ npm version √ yo version

Everything looks all right! npm WARN [email protected] requires a peer of yeoman-environment@^3.2.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of encoding@^0.1.0 but none is installed. You must install peer dependencies yourself.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source