Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit eb8d4bb

Browse files
committed
Share npm versions between node and iojs
1 parent 3965b31 commit eb8d4bb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Library/Formula/iojs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Iojs < Formula
2525
depends_on :python => :build
2626

2727
resource "npm" do
28-
url "https://registry.npmjs.org/npm/-/npm-2.5.1.tgz"
29-
sha1 "23e4b0fdd1ffced7d835780e692a9e5a0125bb02"
28+
url Language::JS::NPM_URL
29+
sha256 Language::JS::NPM_SHA256
3030
end
3131

3232
def install

Library/Formula/node.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class Node < Formula
3737
end
3838

3939
resource "npm" do
40-
url "https://registry.npmjs.org/npm/-/npm-2.7.6.tgz"
41-
sha256 "a9445167f68a42ffcdaa36f9f5c14a954237fce6898555c362e8785261fd72a1"
40+
url Language::JS::NPM_URL
41+
sha256 Language::JS::NPM_SHA256
4242
end
4343

4444
def install

Library/Homebrew/language/javascript.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module Language
22
module JS
3+
4+
NPM_URL = "https://registry.npmjs.org/npm/-/npm-2.7.6.tgz"
5+
NPM_SHA256 = "a9445167f68a42ffcdaa36f9f5c14a954237fce6898555c362e8785261fd72a1"
6+
37
def install_npm(path)
48
# make sure npm can find node
59
ENV.prepend_path "PATH", bin

0 commit comments

Comments
 (0)