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
I did 'flutter pub global activate screenshots' without any errors
Then I did 'screenshots' with following error:
/Developer/flutter/.pub-cache/bin/screenshots: line 7: dart: command not found
What did I do wrong?
Here is my flutter doctor output:
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.14.6 18G95, locale de-DE)
• Flutter version 1.17.4 at /Developer/flutter
• Framework revision 1ad9baa8b9 (13 days ago), 2020-06-17 14:41:16 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/scbl/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.0
And here is the output from 'flutter pub global activate screenshots':
Package screenshots is currently active at version 2.1.1.
Resolving dependencies...
Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
export PATH="$PATH":"$HOME/.pub-cache/bin"
Try the following in terminal, it will temporarily export ,after which do the above mentioned if it works for you::
pub global activate screenshots
export PATH="$PATH":"$HOME/.pub-cache/bin"
screenshots
When I try to run 'screenshots', the terminal throws an error
I followed all the instructions for installation under: https://pub.dev/packages/screenshots#-installing-tab-
I did 'flutter pub global activate screenshots' without any errors
Then I did 'screenshots' with following error:
/Developer/flutter/.pub-cache/bin/screenshots: line 7: dart: command not found
What did I do wrong?
Here is my flutter doctor output:
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.14.6 18G95, locale de-DE)
• Flutter version 1.17.4 at /Developer/flutter
• Framework revision 1ad9baa8b9 (13 days ago), 2020-06-17 14:41:16 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/scbl/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.0
[✓] Connected device (2 available)
• rk3288 • YQX2O3VIVK • android-arm • Android 8.1.0 (API 27)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• No issues found!
And here is the output from 'flutter pub global activate screenshots':
Package screenshots is currently active at version 2.1.1.
Resolving dependencies...
Precompiling executables...
Precompiled screenshots:main.
Installed executable screenshots.
Activated screenshots 2.1.1.
The text was updated successfully, but these errors were encountered: