node@6: update npm to 5.4.2
Closes #19348. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
3aa3a0619e
commit
9c57c7cce7
1 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@ class NodeAT6 < Formula
|
|||
homepage "https://nodejs.org/"
|
||||
url "https://nodejs.org/dist/v6.11.4/node-v6.11.4.tar.xz"
|
||||
sha256 "4c2f0435e3088136ac4bc75236a7717f189d590a13f490065e7b3b8e5aacd450"
|
||||
revision 1
|
||||
head "https://github.com/nodejs/node.git", :branch => "v6.x-staging"
|
||||
|
||||
bottle do
|
||||
|
@ -33,8 +34,8 @@ class NodeAT6 < 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
|
||||
|
@ -68,6 +69,10 @@ class NodeAT6 < 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.
|
||||
|
|
Loading…
Reference in a new issue