-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
[BUG]: webpack does not find globally installed @webpack-cli/init by Yarn #986
Comments
Gotta something to do with this 👇
it's stopping the new package installation in windows. ALso Atleast in my machine I guess - window 10 |
Hi @anikethsaha, No, this is just something additional which happens only with npm (see the last few lines). When I do |
This should not be the case, it should work with any client. Also with Yarn. The info and init packages do not define any binary name which is fine. They are added to the global scope as normal packages. |
In my machine, the yarn is not actually adding the Also wired dates coming when installing using npm, you can see the |
Maybe we need But npm has a different opinion about binaries, see https://docs.npmjs.com/files/package.json#preferglobal
This is normal and a workaround by npm. I would have chosen another. https://github.com/npm/cli/search?q=1985&unscoped_q=1985 https://github.com/npm/cli/blob/36682d4482cddee0acc55e8d75b3bee6e78fff37/lib/pack.js#L146-L148
npm/cli@58d2aa5 Yarn does not need this weird trick because they compare contents, not dates (dates can be always faked / wrong). |
So maybe Yarn and a global installation only with Yarn is not supported and we have to use npm? |
So what can be done here to fix it ! may be to convert it into binary ? |
Just doing npm seems reasonable to me |
@evenstensberg @DanielRuf @anikethsaha I am getting the following error on reciprocating -
|
Refer following comment for this. |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Bump, we need test it for v4 |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
bump |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Bump |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
Describe the bug
webpack-cli
says that it needs the@webpack-cli/init
even when I have doneyarn global add @webpack-cli/init
What is the current behavior?
It seems
webpack-cli
does not find@webpack-cli/init
when it was globally installed with Yarn.To Reproduce
Steps to reproduce the behavior:
yarn global add webpack-cli @webpack-cli/init
webpack-cli init
But doing
npm i -g @webpack-cli init
bywebpack-cli
also completely fails now on Windows but the issue is also happening on Ubuntu 18.Expected behavior
webpack-cli
should not ask to install it usingnpm
.Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
Yarn installed through scoop on Windows 10. node installed through nvm for Windows.
The text was updated successfully, but these errors were encountered: