В документации
laravel говорится,
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
выдаёт
/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
выдаёт
laravel: command not found
попробовал добавить в
/home/dagman/.bashrc
всё равно laravel not found.
Что делать чтобы заработало? В какой
.bashrc
добавлять?
UPDATE:
echo $PATH
выдаёт
/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