Permalink
Browse files

Merge with lastest npmrc fix version

  • Loading branch information...
2 parents 28ec7b6 + 97a5856 commit 0398415ecf935e6517df762986d63753415db59a @abtris abtris committed Mar 3, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/compile
View
8 bin/compile
@@ -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 0398415

Please sign in to comment.