From bbe9880db367d62fb5e448f08fca0a33042d4101 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Tue, 10 Jul 2018 10:13:24 -0400 Subject: [PATCH] Ensure node modules get a fresh install on reset --- script/include/run_setup | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/include/run_setup b/script/include/run_setup index 97fa0808..fd026477 100755 --- a/script/include/run_setup +++ b/script/include/run_setup @@ -1,5 +1,5 @@ -# include/setup: Set up application for the first time after cloning, or set it -# back to the initial first unused state. +# setup: Set up application for the first time after cloning, or set it +# back to the initial first unused state. # Load setup functions source ./script/include/setup_functions.inc.sh @@ -16,6 +16,9 @@ if [ -z "${INSTALL_SASS+is_set}" ]; then fi ## Main +# Remove any existing node modules as part of initial app setup or reset +rm -rf ./node_modules + if [ "${CREATE_VENV}" = "true" ]; then install_pipenv create_virtual_environment