-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttert: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" tooltoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Perform fresh Flutter SDK installation (issue only happens upon first run)
- Run
flutter doctor
Expected results
When pre-existing pub cache is found, flutter tool should advise to run dart pub cache clean
Actual results
Running dart pub cache clear is advised instead (clear instead of clean).
Code sample
Code sample
Not applicableScreenshots or Video
No response
Logs
Logs
> flutter --verbose doctor
Found an existing Pub cache at C:\Users\<username>\AppData\Local\Pub\Cache.
It can be repaired by running `dart pub cache repair`.
It can be reset by running `dart pub cache clear`.
[✓] Flutter (Channel stable, 3.10.4, on Microsoft Windows [Version 10.0.19045.2965], locale cs-CZ)
• Flutter version 3.10.4 on channel stable at C:\tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 682aa387cf (6 days ago), 2023-06-05 18:04:56 -0500
• Engine revision 2a3401c9bb
• Dart version 3.0.3
• DevTools version 2.23.1
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc4)
• Android SDK at C:\Users\<username>\AppData\Local\Android\sdk
• Platform android-33, build-tools 34.0.0-rc4
• Java binary at: C:\Users\<username>\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\222.4459.24.2221.10121639\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.23)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.33214.272
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 2022.2)
• Android Studio at C:\Users\<username>\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\222.4459.24.2221.10121639
• Flutter plugin version 74.0.2
• Dart plugin version 222.4582
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
[✓] VS Code, 64-bit edition (version 1.79.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.40.0
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2965]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.110
• Edge (web) • edge • web-javascript • Microsoft Edge 114.0.1823.43
[✓] Network resources
• All expected network resources are available.
• No issues found!
> dart pub cache clear
Could not find a subcommand named "clear" for "dart pub cache".
Did you mean one of these?
clean
Usage: dart pub cache [arguments...]
-h, --help Print this usage information.
Available subcommands:
add Install a package.
clean Clears the global PUB_CACHE.
repair Reinstall cached packages.
Run "dart help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-cache for detailed documentation.
>Flutter Doctor output
Doctor output
See aboveMetadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttert: flutter doctorProblem related to the "flutter doctor" toolProblem related to the "flutter doctor" tooltoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.