-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Yarn global downloads now every time #602
Comments
Here's the problem: iarna/in-publish#9 But I don't understand this download thing that's going on, why not just publish the package and let npm/yarn handle the download π± |
@albinekb We need a separate binary per platform, otherwise we would simply include it in the package, of course! π We can't ship all binaries, then the package would be too huge. |
But why ship the binary in The binary is great for |
This makes it totally worth it π (gonna start ship node 8 with all my CLIs )
There are no signature checks (if i'm not missing them) https://github.com/zeit/now-cli/blob/master/download/src/index.js but ok. the consistency part is π
|
Running into this today to the point where the now binary download hangs, meaning I can't Edit: After reading the link from @leo, I can't say I agree with any of those points except the first one:
In all other cases, it's more of a hassle, and more of a network drain to re-download a huge binary (even if you already have it installed) every time you install another package. For the non-Node use-case; provide a binary, that's a great idea. But for the node-use case, it should be shipping the code. Use babel if you have to, or put a minimum node version required in the |
We've been through all of that for more than a year now (since the first CLI release) and it never worked out for us. In turn, we decided to go this road. When thinking about this, Now Desktop (which also installs the bundled CLI and can never install a npm package) also needs to be considered. This - as it is - is simply the best solution to cover all cases. Let's take a look at how to fix this yarn issue! npm is already handling it properly. |
Also getting severely hampered by this issue, may try and use just npm for now-cli and yarn for everything else... unless anyone knows of another workaround for yarn? |
@leo @igorklopov any update on this? |
I'm facing this problem too. What's worse, the request hang up with ECONNRESET, which makes the install failing. |
I believe this is fixed in the latest release of now? Just switch from an npm global to yarn global install, and all is well |
Yep seems to be fixed! |
This is back again:
Why does it download |
@leo @igorklopov do you guys just not use yarn? is that the reason for this issue being ignored for so long? or, does the bug lie with yarn & you need them to fix first? |
Ooof, ran into this again today - trying to do a Using Really wish there was a solution for this that didn't involve breaking yarn :( Edit: Nope, still broken. Turns out Instead, it left #!/usr/bin/env node
console.log("The 'now' installation did not complete successfully.")
console.log("Please run 'npm i -g now' to reinstall!") Not sure if that comes from Edit 2: Doing a What a rollercoaster! |
I believe this issue is directly related to this Yarn issue: yarnpkg/yarn#5680 |
Still happening, and if you don't have fiber, you're basically screwed up... |
We've gotten rid of the old installation mechanism. Please try |
* move @types/node to dependencies * fix types
Whenever i install something globally,
now
seems to download itself again? and build?output when done
I guess it's because the
π Building fresh packages
step, but I think this should be fixed, since it makes global install a lot slowerThe text was updated successfully, but these errors were encountered: