Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit c50b46b

Browse files
committed
FUSETOOLS2-1359 - avoid use of sudo to install global npm dependencies
on Circle CI it was previously required, now it is causing build failures. see https://stackoverflow.com/questions/50915469/simple-circleci-2-0-configuration-fails-for-global-npm-package-installation for workaround Signed-off-by: Aurélien Pupier <[email protected]>
1 parent 9477d5f commit c50b46b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
key: dependency-cache-{{ checksum "package-lock.json" }}
1515
- run:
1616
name: install-typescript
17-
command: sudo npm install -g typescript
17+
command: npm install --prefix=$HOME/.local -g typescript
1818
- run:
1919
name: install-vsce
20-
command: sudo npm install -g vsce
20+
command: npm install --prefix=$HOME/.local -g vsce
2121
- run:
2222
name: npm-ci
2323
command: npm ci
@@ -42,7 +42,7 @@ jobs:
4242
key: dependency-cache-{{ checksum "package-lock.json" }}
4343
- run:
4444
name: install-typescript
45-
command: sudo npm install -g typescript
45+
command: npm install --prefix=$HOME/.local -g typescript
4646
- run:
4747
name: npm-ci
4848
command: npm ci

0 commit comments

Comments
 (0)