I
I
Islam Ibakaev2017-06-21 21:53:07
bash
Islam Ibakaev, 2017-06-21 21:53:07

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 .bashrcissues
/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

added
export PATH="$HOME/bin:/usr/local/bin:~/.composer/vendor/bin:$PATH"

in /etc/bash.bashrc
laravel new bloggives out laravel: command not found
tried to add to /home/dagman/.bashrcall the same laravel not found.
What to do to make it work? Which one to .bashrcadd?
UPDATE: echo $PATHgives
/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

2 answer(s)
D
dpvpro, 2017-06-21
@dpvpro

PATH=$PATH":$HOME/.composer/vendor/bin"

C
CityCat4, 2017-06-22
@CityCat4

- 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 question

Ask a Question

731 491 924 answers to any question