Open lornally opened 3 years ago
when i run yarn, then run this again, there is another errer:
$ webpack init webpack-scaffold-demo
up to date, audited 1 package in 241ms
found 0 vulnerabilities
node:events:353
throw er; // Unhandled 'error' event
^
TypeError: self.prompt is not a function
at List (/usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/@webpack-cli/webpack-scaffold/index.js:51:17)
at WebpackGenerator.prompting (/usr/local/lib/node_modules/webpack-scaffold-demo/generator.js:18:4)
at Object.<anonymous> (/usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/yeoman-generator/lib/index.js:424:27)
at /usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/run-async/index.js:49:25
at new Promise (<anonymous>)
at /usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/run-async/index.js:26:19
at /usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/yeoman-generator/lib/index.js:425:13
at processImmediate (node:internal/timers:463:21)
Emitted 'error' event on WebpackGenerator instance at:
at Immediate.<anonymous> (/usr/local/lib/node_modules/webpack-scaffold-demo/node_modules/yeoman-generator/lib/index.js:433:22)
at processImmediate (node:internal/timers:463:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
when i run this cmd:
we get this info: