-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
node 8.9.0 + npm 5.5.1 #20110
node 8.9.0 + npm 5.5.1 #20110
Conversation
Your npx fix didn't make it into 5.5.1? :( |
Npm 5.5.1 was released like a month ago, which was before my fix. |
Pity. |
Also with node v9 released later today we have to float nodejs/node@0ea8ff3deb and nodejs/node@237067d54e over npm too (like node upstream does) for node 9 support (see nodejs/node#16509). Is it enough to only float these node 9 specific patches in the |
Thanks @chrmoritz!
this. I'd be tempted to wait for a comptible npm as the patching sounds ridiculous for a so-called release. |
node 9 is now out. |
Node 9 is out now: https://nodejs.org/en/blog/release/v9.0.0/ @ilovezfs There isn't support for patches in resources in homebrew, right? What would the the best approve to patch npm? Put the patch in a second resource and then call |
This. elm.rb llvm.rb osquery.rb riak.rb reapr.rb |
Life is fun 🙃. |
@ilovezfs Unfortunately its not even that easy in our case, because we would need to patch our Lines 58 to 61 in 36ca175
So we would need to:
|
Alternatively chrmoritz@81d6e3e is a node 9 formula with the unstable npm canary |
@ilovezfs What do you think about shipping a canary version of npm (see comment above) for node 9 an upgrade to an non-canary npm version as soon as a node 9 compatible version is available as npm@next? The formula linked above in chrmoritz@81d6e3e is working fine for me as long as you don't try to update npm itself (which is currently broken for every npm version patched for node 9 out there, because no stable official version does support node 9 yet). |
I'm still leaning toward waiting on a new npm release. This situation doesn't make much sense to me when npm update doesn't even work. |
FWIW, if we went down this path I think we would literally have to write a temporary wrapper around |
Yeah I sympathize with their chicken-and-egg situation but I don't think we need to get sucked into it. |
Closes Homebrew#20110. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
@chrmoritz @DomT4 and now 9.1.0 is out 🙈 |
What is going on with |
@DomT4 maybe we can just start shipping node with yarn. |
I really need to spend some more time getting to know |
@DomT4 There are more than 1 person working on the npm cli, but you have to look deeper into npms dependencies which are developed by other npm cli maintainers. Also the way we handle Npm@5.3.0 or lower will work with node 9 and npm@5.6+ (currently in canary) will work with that node 9 too. In theory we could just ship node 9 with one of these version. |
I think until people can do |
Yeah, no disagreement here. I don't actually use
My concern is mostly around people not being able to update their |
On the one hand I can understand your concerns about breaking npm self upgrades. On the other hand we keep a working npm version in |
except that's exactly the advice being given to people with broken npm: npm/npm#19019 (comment) |
@ilovezfs This issue you are linking to is related to Windows user with a PATH setup were a local copy of npm (5.4-5.5) comes before the patched copy of npm installed by the official node installer. Removing the local copy of npm will lead to the patched and working copy of npm from the node installer to be picked up. This is totally unrelated to our setup, where running |
@chrmoritz I know. And do you want to be the one to explain that to each Homebrew user that breaks their setup doing that? |
I've proposed a formula with node 9.1.0 and a patched version of npm 5.5.1 (with node 9 compatibility which persists self upgrades) in #20431. |
We're waiting for a compatible npm as I already said. |
@chrmoritz @DomT4 5.6.0 (pre-release) is now out. |
Those are some nice features as well. Hopefully that's cut stable soon and things can move ahead fairly rapidly. |
Maybe we should put node 9.2.0 and npm 5.6.0 in a devel spec? |
Seems reasonable enough, although I'd personally be surprised if upstream sit on the release for too long given the incompatibility with the newest |
The planned actual release date is December 7th npm/npm#19019 (comment) |
That's not too bad a wait, but if you want to move ahead and set up a temporary |
|
@ilovezfs |
Yup. Decent timing given new |
So how do we feel about upgrading to node 9 with 5.6.0 for stable now vs. waiting? |
For your consideration: 9.2.1 |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?This PR updates node to version 8.9.0 - the new LTS Carbon release - and npm in all node formulae to 5.5.1 (the version shipped with 8.9.0).
The actual node 9 release will follow later today.