Skip to content

Commit

Permalink
Use new npm cli address for downloading releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Santeri Hiltunen committed Oct 24, 2018
1 parent 8a5d59d commit 9fcc30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/install.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let resolve_addr program version =
let open Program in
let a = match program with
| Node -> Printf.sprintf "https://nodejs.org/dist/v%s/node-v%s-%s-%s.tar.gz" v v p a
| Npm -> Printf.sprintf "https://github.com/npm/npm/archive/v%s.tar.gz" v
| Npm -> Printf.sprintf "https://github.com/npm/cli/archive/v%s.tar.gz" v
| Yarn -> Printf.sprintf "https://github.com/yarnpkg/yarn/releases/download/v%s/yarn-v%s.tar.gz" v v
in Lwt.return a

Expand All @@ -45,7 +45,7 @@ let extracted_dir_name program version =
let open Program in
let n = match program with
| Node -> Printf.sprintf "node-v%s-%s-%s" v p a
| Npm -> Printf.sprintf "npm-%s" v
| Npm -> Printf.sprintf "cli-%s" v
| Yarn -> Printf.sprintf "yarn-v%s" v
in Lwt.return n

Expand Down

0 comments on commit 9fcc30e

Please sign in to comment.