Skip to content

Commit df23cfd

Browse files
authored
Fix npm command order (#4382)
Signed-off-by: Ian Maddaus <[email protected]>
1 parent 5f62c9e commit df23cfd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/local-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -eou pipefail
88
# Run 'netlify dev'
99
###
1010

11+
npm install
1112
npm ls
1213

13-
npm install
1414
hugo server -b localhost:1313

scripts/netlify-branch-deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tar -xf dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2020
rm dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2121
export PATH=/opt/build/repo/dart-sass:$PATH
2222

23+
npm install
2324
npm ls
2425

25-
npm install
2626
hugo --gc --minify --enableGitInfo

scripts/netlify-deploy-preview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tar -xf dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2222
rm dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2323
export PATH=$(pwd)/dart-sass:$PATH
2424

25+
npm install
2526
npm ls
2627

27-
npm install
2828
hugo --gc --minify --enableGitInfo --buildFuture

scripts/netlify-deploy-production.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tar -xf dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2020
rm dart-sass-$DART_SASS_VERSION-linux-x64.tar.gz
2121
export PATH=/opt/build/repo/dart-sass:$PATH
2222

23+
npm install
2324
npm ls
2425

25-
npm install
2626
hugo --gc --minify --enableGitInfo --ignoreCache

0 commit comments

Comments
 (0)