Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit d0e691f

Browse files
committed
cei(circle): clean npm cache after install
The npm.js cache was getting partially polluted with `root` files from the global install. After installing sass-lint remove the entire folder.
1 parent 4bc1bfa commit d0e691f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ defaults: &defaults
2222
name: Node.js version
2323
command: node --version
2424
- run:
25-
name: Install sass-lint
26-
command: sudo npm install -g sass-lint
25+
name: Install sass-lint globally
26+
command: |
27+
sudo npm install --global sass-lint && \
28+
sudo rm -Rf ~/.npm
29+
# Removes the .npm folder as the cache is partially polluted as root
2730
- run:
2831
name: Sass Lint version
2932
command: sass-lint --version

0 commit comments

Comments
 (0)