Skip to content
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

Cannot install webpack-cli via npm #326

Closed
mu88 opened this issue Mar 9, 2018 · 6 comments
Closed

Cannot install webpack-cli via npm #326

mu88 opened this issue Mar 9, 2018 · 6 comments

Comments

@mu88
Copy link

mu88 commented Mar 9, 2018

I'm learning JavaScript and would like to use webpack, so I've installed it via npm install --save-dev webpack without any problems.
When executing node_modules\.bin\webpack webpack.config.js, it says that I have to install webpack-cli, so I ran npm install webpack-cli -D. This command takes extremely long for fetching the metadata and fails after approximately one minute with the following error:
npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/ev1stensberg/generator.git npm ERR! npm ERR! ssh: connect to host github.com port 22: Connection refused npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128

I'm behind a corporate proxy, for sure, but I've configured the npm proxy settings and fetching other modules is not a problem. Only webpack-cli doesn't seem to work.

@andrewpmontgomery
Copy link

Same as bugs #311 #313 #314 #318 etc. All tracked under bug #161 . Hopefully will be fixed with PR #323

@mu88
Copy link
Author

mu88 commented Mar 9, 2018

Thanks for your quick reply! So is there any way for me to use webpack via CLI right now? Do I have to install a previous version of webpack which does not rely on webpack-cli?

@andrewpmontgomery
Copy link

Just install webpack-cli 2.0.9 for now.

@dhruvdutt
Copy link
Member

dhruvdutt commented Mar 9, 2018

@mu88 You can use 2.0.9 for now but beware of some other issues which were fixed in 2.0.10. Check the changelog to know more.

Also, you can close this issue since we're already tracking it in #161. Thanks for reporting.

@mu88
Copy link
Author

mu88 commented Mar 9, 2018

Thank you, guys!

@ematipico
Copy link
Contributor

Duplicate of #161

@ematipico ematipico marked this as a duplicate of #161 Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants