When attempting to run a generator using the latest version of yeoman-generator
(7.1.0),
yo discord
An error message pops up saying:
This generator (discord:app) requires yeoman-environment version 4.0.0-rc.0 or higher, but the current version is 3.19.3. It suggests reinstalling the latest version of 'yo' or using the '--ignore-version-check' option.
What could be causing this issue?
$ yo --version
4.3.1
$ node --version
v20.9.0
$ npm list -g
C:\Users\emilk\AppData\Roaming\npm
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="99fefcf7fcebf8edf6ebb4faf6fdfcd9a8b7a1b7a9">[email protected]</a>
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bddad8d3d8cfdcc9d2cf90d9d4ceded2cfd9fd8c938e938c">[email protected]</a>
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa9d9f949f889b8e9588d7969b949d938f97bac8d4cbd4ca">[email protected]</a>
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f48d919b99959ad9919a829d869b9a99919a80b4c0dac4dac4">[email protected]</a>
└── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5e27311e6a706d706f">[email protected]</a>
I would have expected the generator to function properly without any issues.