Skip to content

Commit 3dac4bf

Browse files
author
Aaron Evans
committed
Modified install-dependencies to use a build specific npm cache directory.
export HOME=$WORKING_DIR This is to prevent collsions for different builds using the shared ~/.npm directory for caching downloads. It means slower builds because it has to download all packages for each build, but will hopefully solve the problem. We may still have to obliterate the cache if something gets corrupt, but I'll hold off on doing that until I see the problem
1 parent 3149ac5 commit 3dac4bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install-dependencies.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ install_dependencies()
2626
fi
2727
}
2828

29+
# we do this so NPM CACHE will be unique for each build
30+
# it means more packages need download per build, but should prevent collisions
31+
export HOME=$WORKING_DIR
32+
2933
install_dependencies

0 commit comments

Comments
 (0)