You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple output directories specified with --pub #6489
Something odd happens with flutter create <project>
If you try it without any options it works fine. If you try it with the --pub flag it says Multiple output directories specified
Does flutter create --pub myapp work for you?
Does flutter create myapp --pub fail?
My guess is that the underlying Dart command framework only handles options immediately after the command name (e.g. create is the command in this situation). I'll try to improve the error message so that its more obvious what the tool expects.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
eseidelGoogle commentedon Oct 23, 2016
@danrubel
danrubel commentedon Oct 25, 2016
Does
flutter create --pub myappwork for you?Does
flutter create myapp --pubfail?My guess is that the underlying Dart command framework only handles options immediately after the command name (e.g.
createis the command in this situation). I'll try to improve the error message so that its more obvious what the tool expects.somay-py commentedon Sep 7, 2020
try removing space from your app name
GhagSagar23 commentedon Dec 21, 2020
Just move your app name after the
--pubflaggithub-actions commentedon Aug 8, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.