11class Node < Formula
22 desc "Platform built on V8 to build network applications"
33 homepage "https://nodejs.org/"
4- url "https://nodejs.org/dist/v22.10 .0/node-v22.10 .0.tar.xz"
5- sha256 "3180710d3130ad9df01466abf010e408d41b374be54301d1480d10eca73558e0 "
4+ url "https://nodejs.org/dist/v23.1 .0/node-v23.1 .0.tar.xz"
5+ sha256 "57cbfd3dd51f9300ea2b8e60a8ed215b1eaa71fbde4c3903a7d31a443a4a4423 "
66 license "MIT"
77 head "https://github.com/nodejs/node.git" , branch : "main"
88
@@ -12,12 +12,12 @@ class Node < Formula
1212 end
1313
1414 bottle do
15- sha256 arm64_sequoia : "8873a7d069ab23b64ae759a120aad341efc70d52d40ae7f516929749c989ab32 "
16- sha256 arm64_sonoma : "b720787c6a939c9297b3bb2afed61f7575320d0f96b19e80326e1d1c64742a8b "
17- sha256 arm64_ventura : "cebda79d7078e012a35c515b596f5751d06cfe473ff0b6e4d12a0690698196c0 "
18- sha256 sonoma : "ee69651ab2feba623a36be22e913a3f2d1b7b62221606407e5cbfe1f9e24a350 "
19- sha256 ventura : "c41631ba7b8183681ca13c2259f20223b448f050103174d5bd8a4acec033fa06 "
20- sha256 x86_64_linux : "1dbea0b65a46aedeeeb95d766c4754fa4bbe214d162e0ea58c0f6396bd67da6b "
15+ sha256 arm64_sequoia : "5824a64a342860ad4ac5b18176aaa2814895cfbe4e8cd80542153c2ad9eb16b0 "
16+ sha256 arm64_sonoma : "ca3540c4cb81d2f0fef4780561947dad31659e5dc4fafbbce369727d6a69e98c "
17+ sha256 arm64_ventura : "662948dd51379a9d7c41a3e2899f00269a14b80f4183d821b208f4b203b6b09a "
18+ sha256 sonoma : "30b416b36b2a01b1678ce99fb76616433a0b7fdbd5654222cff058c55018c7e7 "
19+ sha256 ventura : "741dc0fa1a33104d0fb69a28cf10b25c9672edb78bc2d68f81001c41a799dd03 "
20+ sha256 x86_64_linux : "8eea14e17b67e32f59325d0c61d904fc0f69d255854edb7d8ae7117cc8dc1126 "
2121 end
2222
2323 depends_on "pkg-config" => :build
@@ -66,7 +66,6 @@ def install
6666 args = %W[
6767 --prefix=#{ prefix }
6868 --without-npm
69- --without-corepack
7069 --with-intl=system-icu
7170 --shared-libuv
7271 --shared-nghttp2
@@ -169,7 +168,7 @@ def post_install
169168 assert_predicate HOMEBREW_PREFIX /"bin/npm" , :executable? , "npm must be executable"
170169 npm_args = [ "-ddd" , "--cache=#{ HOMEBREW_CACHE } /npm_cache" , "--build-from-source" ]
171170 system HOMEBREW_PREFIX /"bin/npm" , *npm_args , "install" , "npm@latest"
172- system HOMEBREW_PREFIX /"bin/npm" , *npm_args , "install" , "ref-napi "
171+ system HOMEBREW_PREFIX /"bin/npm" , *npm_args , "install" , "nan "
173172 assert_predicate HOMEBREW_PREFIX /"bin/npx" , :exist? , "npx must exist"
174173 assert_predicate HOMEBREW_PREFIX /"bin/npx" , :executable? , "npx must be executable"
175174 assert_match "< hello >" , shell_output ( "#{ HOMEBREW_PREFIX } /bin/npx --yes cowsay hello" )
0 commit comments