3

I've composer installed in my linux machine. I wanted to use recently released tunnel application expose which is ngrok alternative. check this here . But after installing I cannot use it as it shows error expose: command not found. Someone posted similar issue here but I couldn't find any way to solve it. I tried checking path of composer ( given below ) and stuff but nothing happened.

Any kind of help is appreciated.

enter image description here

https://beyondco.de/docs/expose/introduction enter image description here

fahim152
  • 2,531
  • 1
  • 10
  • 29

1 Answers1

6

If you are using a default terminal then :

echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc

Alternative:

  1. sudo nano ~/.bashrc
  2. Add export PATH="$PATH:$HOME/.config/composer/vendor/bin" at the buttom.

Same Process if you use external terminal like zshrc as well.

Bijaya Kumar Oli
  • 2,007
  • 19
  • 15
  • 1
    yes! this is the answer. However, I've already solved the issue. Appreciate it, brother :) – fahim152 Jul 06 '20 at 08:22
  • In my case I had to run `composer exec expose token [TOKEN HERE]` then `composer exec expose` – csalmeida Apr 27 '21 at 15:57
  • i got it working by adding `export PATH="$PATH:$HOME/.composer/vendor/bin"` i.e. composer folder was not inside config but on its own – temirbek Oct 06 '22 at 10:11