File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/flutterfire_cli/lib/src Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ Future<bool> npxExists() async {
56
56
return _npxExistsCache = process.exitCode == 0 ;
57
57
}
58
58
59
-
60
59
/// Tries to read the default Firebase project id from the
61
60
/// .firbaserc file at the root of the dart project if it exists.
62
61
Future <String ?> getDefaultFirebaseProjectId () async {
@@ -99,8 +98,8 @@ Future<Map<String, dynamic>> runFirebaseCommand(
99
98
if (! cliExists) {
100
99
// If the CLI isn't installed, we can attempt to run it via npx which will
101
100
// use the newest Firebase CLI version
102
- final npxExists = await npxExists ();
103
- if (! npxExists ) {
101
+ final npxCliExists = await npxExists ();
102
+ if (! npxCliExists ) {
104
103
throw FirebaseCommandException (
105
104
'--version' ,
106
105
logMissingFirebaseCli,
@@ -112,7 +111,7 @@ Future<Map<String, dynamic>> runFirebaseCommand(
112
111
];
113
112
process = await Process .run (
114
113
'npx' ,
115
- execArgs ,
114
+ npxExecArgs ,
116
115
workingDirectory: workingDirectoryPath,
117
116
environment: {
118
117
if (serviceAccount != null )
You can’t perform that action at this time.
0 commit comments