/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/index.js
at loadWithDataFromManifest (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/module-loader.js:113:19)
at fetch (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/config/plugin.js:182:74)
at Plugin.findCommand (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/config/plugin.js:200:27)
at Object.load (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/config/plugin.js:244:36)
at Config.runCommand (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/config/config.js:397:33)
at run (/home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/node_modules/@oclif/core/lib/main.js:85:29)
at async /home/leo/.nvm/versions/node/v18.15.0/lib/node_modules/openapicmd/bin/run.js:6:3
It only worked when I installed npm i -g openapi-client-axios-typegen
But typegen documentation says:
Tip: It's recommended to use openapicmd typegen to generate types instead of directly installing the openapi-client-axios-typegen package.
How to reproduce? Openapicmd version: 2.0.0-rc17
npm install -g openapicmd
openapi typegen
Error generated:It only worked when I installed
npm i -g openapi-client-axios-typegen
But typegen documentation says: