typescriptyeomanyeoman-generator

This generator XXX requires yeoman-environment at least 4.0.0-rc.0, and the current version is 3.19.3


When running a generator which used the latest version of yeoman-generator (7.1.0),

yo discord

I get the following error message: This generator (discord:app) requires yeoman-environment at least 4.0.0-rc.0, current version is 3.19.3, try reinstalling latest version of 'yo' or use '--ignore-version-check' option

What is going on there?

$ yo --version
4.3.1

$ node --version
v20.9.0

$ npm list -g
C:\Users\emilk\AppData\Roaming\npm
├── generator-code@1.8.0
├── generator-discord@1.3.1
├── generator-langium@2.1.0
├── yeoman-environment@4.0.0
└── yo@4.3.1

I would expect the generator to work as expected.


Solution

  • Just update Yeoman using:

    npm i -g yo
    

    Yeoman fixed the problem in v5.0.0.