node@4: update npm to 5.4.2

master
ilovezfs 2017-10-11 22:53:23 -07:00
parent 442fd527f1
commit 3aa3a0619e
1 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ class NodeAT4 < Formula
homepage "https://nodejs.org/"
url "https://nodejs.org/dist/v4.8.4/node-v4.8.4.tar.xz"
sha256 "35fe633a48cbe93c79327161d9dc964ac9810f4ceb2ed8628487e6e14a15905b"
revision 1
revision 2
head "https://github.com/nodejs/node.git", :branch => "v4.x-staging"
bottle do
@ -26,8 +26,8 @@ class NodeAT4 < Formula
# Keep in sync with main node formula
resource "npm" do
url "https://registry.npmjs.org/npm/-/npm-5.3.0.tgz"
sha256 "dd96ece7cbd6186a51ca0a5ab7e1de0113333429603ec2ccb6259e0bef2e03eb"
url "https://registry.npmjs.org/npm/-/npm-5.4.2.tgz"
sha256 "04dc5f87b1079d59d51404d4b4c4aacbe385807a33bd15a8f2da2fabe27bf443"
end
resource "icu4c" do
@ -63,6 +63,10 @@ class NodeAT4 < Formula
system "node", bootstrap/"bin/npm-cli.js", "install", "-ddd", "--global",
"--prefix=#{libexec}", resource("npm").cached_download
# Fix from chrmoritz for ENOENT issue with @ in path to node
inreplace libexec/"lib/node_modules/npm/node_modules/libnpx/index.js",
"return child.escapeArg(npmPath, true)", "return npmPath"
# The `package.json` stores integrity information about the above passed
# in `cached_download` npm resource, which breaks `npm -g outdated npm`.
# This copies back over the vanilla `package.json` to fix this issue.