'can't run the package after activation flutter

I want to activate the ff_annotation_route package with the command below

pub global activate ff_annotation_route

the result is as below

Package ff_annotation_route is currently active at version 9.0.0. Resolving dependencies... (1.5s) The package ff_annotation_route is already activated at newest available version. To recompile executables, first run dart pub global deactivate ff_annotation_route. Installed executable ff_route. Warning: 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"

Activated ff_annotation_route 9.0.0.

after that I run the command below to test it out

ff_route -h

I get an error message like below

/home/pc-name/.pub-cache/bin/ff_route: 8: dart: not found



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source