Skip to content

Commit 723c9d7

Browse files
committed
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.
1 parent ec2813f commit 723c9d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"start": "node app.js"
1414
},
1515
"dependencies": {
16-
"Idle.Js": "github:shawnmclean/Idle.js",
16+
"Idle.Js": "git+https://github.com/shawnmclean/Idle.js",
1717
"async": "^2.1.4",
1818
"aws-sdk": "^2.7.20",
1919
"blueimp-md5": "^2.6.0",
@@ -96,7 +96,7 @@
9696
"pg-hstore": "^2.3.2",
9797
"prismjs": "^1.6.0",
9898
"randomcolor": "^0.4.4",
99-
"raphael": "github:dmitrybaranovskiy/raphael",
99+
"raphael": "git+https://github.com/dmitrybaranovskiy/raphael",
100100
"request": "^2.79.0",
101101
"reveal.js": "^3.3.0",
102102
"scrypt": "^6.0.3",

0 commit comments

Comments
 (0)