Skip to content

Commit 6511c23

Browse files
committed
ci: add '--prefer-offline' to npm ci
1 parent a28c69e commit 6511c23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- checkout
4242
- node/install-packages:
4343
include-branch-in-cache-key: false
44+
override-ci-command: npm ci --loglevel info --prefer-offline
4445
- run:
4546
name: Test
4647
command: npm run test
@@ -129,16 +130,14 @@ jobs:
129130
nvm --version
130131
nvm install 16.20.0
131132
nvm use 16.20.0
132-
- run:
133-
name: Increase NPM log level to avoid timeouts while installing packages
134-
command: npm config set loglevel info
135133
- run: node --version && npm --version
136134
- checkout
137135
- node/install-packages:
138136
# the Node orb doesn't understand the default cache path on Windows
139137
# make sure to use a path that works with Windows Node.js AND MSYS/MinGW bash
140138
cache-path: "C:/tmp/npm-cache"
141139
include-branch-in-cache-key: false
140+
override-ci-command: npm ci --loglevel info --prefer-offline
142141
- run:
143142
name: Test
144143
command: npm run test

0 commit comments

Comments
 (0)