Skip to content

Commit ff821f3

Browse files
committed
Fix create-react-admin package manager detection
1 parent e5350c0 commit ff821f3

File tree

1 file changed

+1
-1
lines changed
  • packages/create-react-admin/src

1 file changed

+1
-1
lines changed

packages/create-react-admin/src/cli.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const getAuthProvider = (flags: typeof cli.flags) => {
5454
};
5555

5656
const getDefaultInstaller = (userAgent: string) => {
57-
if (!userAgent) return undefined;
57+
if (!userAgent) return 'npm';
5858
const pkgSpec = userAgent.split(' ')[0];
5959
const pkgSpecArr = pkgSpec.split('/');
6060
return pkgSpecArr[0];

0 commit comments

Comments
 (0)