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

Commit 676a7f9

Browse files
committed
fix: do not use pnpm automatically
1 parent 6b291b5 commit 676a7f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/installPackages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ function getNpmClient() {
1515
return cachedNpmClient
1616
}
1717

18-
if (spawn.sync('pnpm', ['--version']).status === 0) {
19-
cachedNpmClient = 'pnpm'
20-
} else if (spawn.sync('yarn', ['--version']).status === 0) {
18+
if (spawn.sync('yarn', ['--version']).status === 0) {
2119
cachedNpmClient = 'yarn'
20+
} else {
21+
cachedNpmClient = 'npm'
2222
}
2323

2424
return cachedNpmClient

0 commit comments

Comments
 (0)