zsh: command not found: pub
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 savingCheck working of aqueduct using
aqueduct --version
or
aqueduct serve
Well, I don't know what is aqueduct
, but this is a common way to solve such issues:
- When you see
$ 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 inexport 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
- If you didn't found aquedict binary, read the docs again. :)
In your case it's https://aqueduct.io/docs/getting_started/ ,
and the first step is to install Dart: https://dart.dev/get-dart