From 723c9d79b665ecfbbfa9f92b6f84710724ba1713 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Sat, 1 Jul 2017 15:41:56 -0600 Subject: [PATCH] Use git URLs in package.json Using the "github:..." form to declare a dependency in package.json makes npm attempt to install the package using an ssh clone rather than an https clone. Some deployment environments may not allow ssh access to external servers which will prevent the clones from succeeding. Using the "git+https://..." form will clone the same repo from GitHub without requiring ssh connectivity. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4a0c7e..b0f1ae1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "start": "node app.js" }, "dependencies": { - "Idle.Js": "github:shawnmclean/Idle.js", + "Idle.Js": "git+https://github.com/shawnmclean/Idle.js", "async": "^2.1.4", "aws-sdk": "^2.7.20", "blueimp-md5": "^2.6.0", @@ -96,7 +96,7 @@ "pg-hstore": "^2.3.2", "prismjs": "^1.6.0", "randomcolor": "^0.4.4", - "raphael": "github:dmitrybaranovskiy/raphael", + "raphael": "git+https://github.com/dmitrybaranovskiy/raphael", "request": "^2.79.0", "reveal.js": "^3.3.0", "scrypt": "^6.0.3",