zsh: command not found: pub zsh: command not found: pub dart dart

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


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:

  1. 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.

  1. Find out in which folder aquedict is located, and add the path to it in export PATH=..., like in you did in .zshrc file.

  2. If you found aquedict binary, and it still fails to work, try adding it permissions to execute:

chmod +rwx aquedict

  1. 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