I'm getting this error message when try to install aqueduct on macOS Catalina with this command.
pub global activate aqueduct
I managed to install it by putting flutter in front of it but now I cannot run aqueduct. I tried
aqueduct --version
I get an error again
zsh: command not found: aqueduct
Here is my .zshrc file (I've added last second line to try to fix it)
export PATH="$PATH:/Users/peter/development/tools/flutter/bin"
export PATH="$PATH":"$HOME/.pub-cache/bin"
I don't know what else to do...
Edit zshrc file using vim on terminal
vim ~/.zshrc
edit data on zshrc after pressing "i" on keyboard. Export flutter location, aqueduct location and dart sdk location.
NOTE, to change the your_path to your flutter directory. i.e where flutter is installed.
export PATH="$PATH":"your_path/flutter/bin"
export PATH="$PATH":"your_path/flutter/.pub-cache/bin"
export PATH="$PATH":"your_path/flutter/bin/cache/dart-sdk/bin"
After editing press "esc" key and type :wq
for saving
Check working of aqueduct using
aqueduct --version
or
aqueduct serve
If you have flutter installed, try flutter pub global activate aqueduct
Well, I don't know what is aqueduct
, but this is a common way to solve such issues:
$ zsh: command not found: aqueduct
, run $ which aqueduct
- it shouldn't work.
If it works, then the shell does know about a binary named aqueduct
.
Find out in which folder aquedict
is located, and add the path to it in export PATH=...
, like in you did in .zshrc
file.
If you found aquedict binary, and it still fails to work, try adding it permissions to execute:
chmod +rwx aquedict
In your case it's https://aqueduct.io/docs/getting_started/ ,
and the first step is to install Dart: https://dart.dev/get-dart
I got this error zsh: command not found: pub
quick answer if you already have flutter installed
run
flutter pub get
because You can either download the Dart SDK directly (as described below) or download the Flutter SDK, which (as of Flutter 1.21) includes the full Dart SDK.
In my case I wanted to install dependencies in pubspec.yaml
in my dart project, but got zsh: command not found: pub
.
What is pub
The pub
tool has commands for managing packages and for deploying packages and command-line apps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With