Skip to content

Commit

Permalink
cache npm modules between builds and increase the number of retries w…
Browse files Browse the repository at this point in the history
…hen fetching from the package repo.
  • Loading branch information
andrewseddon committed Oct 21, 2012
1 parent f1538c1 commit e691aa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export CPPPATH="$INCLUDE_PATH"

# install dependencies with npm
echo "-----> Installing dependencies with npm"
run_npm "install --production"
run_npm "cache add $CACHE_DIR"
run_npm "install --production --fetch-retries 5"
run_npm "rebuild"
echo "Dependencies installed" | indent

Expand Down

0 comments on commit e691aa0

Please sign in to comment.