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.
This commit is contained in:
Bryan Davis 2017-07-01 15:41:56 -06:00
parent ec2813f06e
commit 723c9d79b6

View file

@ -13,7 +13,7 @@
"start": "node app.js" "start": "node app.js"
}, },
"dependencies": { "dependencies": {
"Idle.Js": "github:shawnmclean/Idle.js", "Idle.Js": "git+https://github.com/shawnmclean/Idle.js",
"async": "^2.1.4", "async": "^2.1.4",
"aws-sdk": "^2.7.20", "aws-sdk": "^2.7.20",
"blueimp-md5": "^2.6.0", "blueimp-md5": "^2.6.0",
@ -96,7 +96,7 @@
"pg-hstore": "^2.3.2", "pg-hstore": "^2.3.2",
"prismjs": "^1.6.0", "prismjs": "^1.6.0",
"randomcolor": "^0.4.4", "randomcolor": "^0.4.4",
"raphael": "github:dmitrybaranovskiy/raphael", "raphael": "git+https://github.com/dmitrybaranovskiy/raphael",
"request": "^2.79.0", "request": "^2.79.0",
"reveal.js": "^3.3.0", "reveal.js": "^3.3.0",
"scrypt": "^6.0.3", "scrypt": "^6.0.3",