composer-phpngroklocaltunnel

Beyond Code Expose | expose: command not found error in linux


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


Solution

  • 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.