-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞[cli]: throws err when no args passed. #861
Comments
Have you installed webpack? |
No I haven't installed webpack. |
This is a no fix in my opinion |
@evenstensberg Fix #862 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
CLI throws an error when no args passed. Occurs only if
webpack
is not installed.What is the current behaviour?
Throws an error.
To Reproduce
Steps to reproduce the behaviour:
npm init -y
npm i webpack-cli
./node_modules/webpack-cli/bin/cli.js
Expected behavior
Must provide some useful information in order to resolve the issue, instead of showing err logs.
Please paste the results of
webpack-cli info
here, and mention other relevant informationSystem:
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Binaries:
Node: 10.12.0 - ~/.nvm/versions/node/v10.12.0/bin/node
Yarn: 1.12.3 - /usr/bin/yarn
npm: 6.5.0 - ~/.nvm/versions/node/v10.12.0/bin/npm
Browsers:
Chrome: 73.0.3683.103
Firefox: 66.0.3
npmPackages:
webpack: ^4.30.0 => 4.30.0
webpack-cli: ^3.3.1 => 3.3.1
npmGlobalPackages:
webpack-cli: 3.3.1
webpack: 4.27.1
The text was updated successfully, but these errors were encountered: