Describe the bug
A 💯 way to do this is to provide your configuration via a GitHub gist and/or to use markdown when describing which commands you used when the error occurred! Be precise and clear in your description of the bug.
What is the current behavior?
when I run webpack --mode development(or production), the webpack-cli shows TypeError: Cannot read property 'length' of undefined on the line node_modules\webpack-cli\bin\cli.js:93. my computer is win10
This is where you elaborate on the current behavior of the cli, how it behaves normally differing from the previous version/build you did.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
1.just create a folder on win10
2.npm i -S webpack@next
3.npm i -S webpack-cli@latest
4.write "dev": "webpack --mode development" in package.json
5.npm run dev
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Please paste the results of webpack-cli info here, and mention other relevant information

Additional context
Add any other context about the problem here like linking to an similar issue you might think is the cause.
Describe the bug
A 💯 way to do this is to provide your configuration via a GitHub gist and/or to use markdown when describing which commands you used when the error occurred! Be precise and clear in your description of the bug.
What is the current behavior?
when I run
webpack --mode development(or production), the webpack-cli showsTypeError: Cannot read property 'length' of undefinedon the linenode_modules\webpack-cli\bin\cli.js:93. my computer is win10This is where you elaborate on the current behavior of the cli, how it behaves normally differing from the previous version/build you did.
To Reproduce
Steps to reproduce the behavior:
1.just create a folder on win10
2.npm i -S webpack@next
3.npm i -S webpack-cli@latest
4.write "dev": "webpack --mode development" in package.json
5.npm run dev
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

If applicable, add screenshots to help explain your problem.
Please paste the results of

webpack-cli infohere, and mention other relevant informationAdditional context
Add any other context about the problem here like linking to an similar issue you might think is the cause.