Ad
Bash: Homestead: Command Not Found
I install homestead and laravel but when i write the command in command line there is error the command not found for both laravel and homestead so i search a lot and i found that i must add the path so i added in efferent way but still the same error command not found. and this is my bash profile is there any wrong when i added the path?
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
export composer=php /usr/bin/composer.phar
export PATH=~/.composer/vendor/bin/:$PATH:/home/alsachit/.composer
Ad
Answer
You should run Laravel commands from Laravel project directory, like php artisan
or composer
. If you will run there commands from other directories, you can meet a lot of errors (a lot of guys ask for help on SO because of it), so my advice is to keep it simple.
UPDATE:
COMPOSER_PATH=~/.composer/vendor/bin
PATH=$COMPOSER_PATH:$PATH
export PATH
Another way which may work for you:
export PATH="$PATH:$HOME/.composer/vendor/bin"
Ad
source: stackoverflow.com
Related Questions
- → Database Record created_at Time Randomly Changes
- → npm is putting all dependencies and sub-dependecies int he same folder
- → Laravel 5.2 not working with vagrant homestead php 7
- → Can't add cron task in Laravel 5.0.5 on linux server
- → Node.js Split large file into parts and iterate over the parts
- → Laravel - Connection could not be established with host smtp.gmail.com
- → Redirect Each Page of Old Domain to Same Page URL on the New Domain
- → October CMS - Cannot edit pages in backend - http status 403
- → The Laravel View is Not Working On Linux Server
- → How to get a value in an array that's in a list of arrays in javascript
- → Beanstalkd to start when the system starts up or reboots , how to uncomment "START yes" on Centos
- → Vagrant with homestead and Linux boxes
- → Only one route not returning anything on live Laravel site, works on local sites
Ad