Closed nandaccio closed 2 years ago
I deleted all the generators above and then "yo" ran without issues, but after re-installing one of them, I got the same error:
C:\Program Files\nodejs\node_modules\yo\node_modules\update-notifier\index.js:32
throw new Error('pkg.name and pkg.version required');
^
Error: pkg.name and pkg.version required
at new UpdateNotifier (C:\Program Files\nodejs\node_modules\yo\node_modules\update-notifier\index.js:32:10)
at module.exports (C:\Program Files\nodejs\node_modules\yo\node_modules\update-notifier\index.js:150:25)
at resolveGenerators (C:\Program Files\nodejs\node_modules\yo\lib\router.js:74:20)
at Router.updateAvailableGenerators (C:\Program Files\nodejs\node_modules\yo\lib\router.js:84:7)
at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\yo\lib\routes\install.js:150:11)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at ChildProcess.cp.emit (C:\Program Files\nodejs\node_modules\yo\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1062:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
Issue seems caused by https://github.com/microsoft/vscode-generator-code , removing this generator solves the problem.
Type of issue
BUG
My environment
Current behavior
Steps to reproduce the behavior
Running yo from a command prompt (yo + return)
Command line output
List of generators: