Permalink
Browse files

Merge pull request #4 from apiaryio/abtris/update-npmrc

Abtris/update npmrc
  • Loading branch information...
2 parents 28ec7b6 + 0398415 commit 4131cb99874b66c8d56e773ccac284b2e1b9392d @abtris abtris committed Mar 3, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/compile
View
@@ -79,6 +79,14 @@ 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
status "Exporting config vars to environment"
export_env_dir $env_dir

0 comments on commit 4131cb9

Please sign in to comment.