Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #98 from heroku/npm-cert-bug

npm cert bug
  • Loading branch information...
commit 97a5856d3d4407e9fde82bac31cb308430e459f7 2 parents a096187 + 4486ec5
@zeke zeke authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 bin/compile
View
7 bin/compile
@@ -75,6 +75,13 @@ elif test -d $cache_dir/node/node_modules; then
fi
+# Handle npm's new cert bug
+# http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
+if [ ! -f "$build_dir/.npmrc" ]; then
+ status "Writing a custom .npmrc to circumvent npm bugs"
+ echo "ca=" > "$build_dir/.npmrc"
+fi
+
# Scope config var availability only to `npm install`
(
if [ -d "$env_dir" ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.