From f80bfd3d535f8e5da46bd794ad12ae27e0b5085d Mon Sep 17 00:00:00 2001 From: Seven Du Date: Mon, 9 Jul 2018 20:04:47 +0800 Subject: [PATCH] fix(npm): ( issue Kenshin/gnvm#21 ) Fixed NPM repo `package.json` file raw URL. --- nodehandle/npm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodehandle/npm.go b/nodehandle/npm.go index 538ccef5..3842e990 100644 --- a/nodehandle/npm.go +++ b/nodehandle/npm.go @@ -24,7 +24,7 @@ import ( ) const ( - LATNPMURL = "https://raw.githubusercontent.com/npm/npm/master/package.json" + LATNPMURL = "https://raw.githubusercontent.com/npm/npm/latest/package.json" NPMTAOBAO = "http://npm.taobao.org/mirrors/npm/" NPMDEFAULT = "https://github.com/npm/npm/releases/" ZIP = ".zip"