Answer the question
In order to leave comments, you need to log in
How to put $HOME/.composer/vendor/bin in $PATH in linux mint?
The laravel
documentation says,
Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system.
locate .bashrc
issues/etc/bash.bashrc
/etc/skel/.bashrc
/home/dagman/.bashrc
/usr/share/base-files/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bashrc
export PATH="$HOME/bin:/usr/local/bin:~/.composer/vendor/bin:$PATH"
/etc/bash.bashrc
laravel new blog
gives out laravel: command not found
/home/dagman/.bashrc
all the same laravel not found. .bashrc
add? echo $PATH
gives/home/dagman/.nvm/versions/node/v6.10.3/bin:/home/dagman/bin:/usr/local/bin:/home/dagman/.composer/vendor/bin:/home/dagman/bin:/home/dagman/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Answer the question
In order to leave comments, you need to log in
- It is not recommended to edit system scripts unnecessarily (outside of homework). Yes, no one forbade this, but the system may not count on the presence of edits there and stupidly rewrite it, for example. Edit .bashrc.
- It is not recommended to knock down the previous PATH value - it may already be set and set very loosely by system scripts. Use the method described by danwerspb
- what does the "which laravel" command output?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question