Skip to content

Commit a0a51c2

Browse files
committed
node: upstream fix for npm init hang
Closes #14386. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
1 parent fad96b1 commit a0a51c2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Formula/node.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Node < Formula
33
homepage "https://nodejs.org/"
44
url "https://nodejs.org/dist/v8.1.0/node-v8.1.0.tar.xz"
55
sha256 "f2ff20b69b782dee85e887ad06e830590b2250856f6df325ed15a368bb6777fc"
6+
revision 1
67
head "https://github.com/nodejs/node.git"
78

89
bottle do
@@ -42,6 +43,15 @@ class Node < Formula
4243
sha256 "de62206d779afcba878b3fb949488c01be99afc42e3c955932e754c2ab9aec73"
4344
end
4445

46+
# Remove for > 8.1.0
47+
# Fix "All versions of `npm init` hang on Node 8.1.0"
48+
# Upstream PR from 8 Jun 2017 "Revert 'readline: clean up event
49+
# listener in onNewListener'"
50+
patch do
51+
url "https://github.com/nodejs/node/pull/13560.patch"
52+
sha256 "036e86cee567059415847850a84bed6f80405b02f98b8ce9a5d921a7c480127e"
53+
end
54+
4555
def install
4656
# Never install the bundled "npm", always prefer our
4757
# installation from tarball for better packaging control.

0 commit comments

Comments
 (0)