Sunday, January 30, 2022

[FIXED] Laravel composer absolute path error in VB

Issue

I run local virtual box development server with ubuntu 12.04. To access files I use virtual box shared folders which are mounted into ubuntu at /media/Sites. This dir I use as DocumentRoot for apache.

When I try to run composer create-project laravel/laravel --prefer-dist I get error:

    [InvalidArgumentException]
$from (/media/Sites/test.dev/laravel/vendor/bin/boris) and $to () must be absolute paths.

I assume problem is because dir /media/Sites is outside of ubuntu in windows 8.1. I also tried to create new laravel project in some linux dir and it worked without any error.

What would be the best fix for this? Thanks in advance


Solution

Be sure you have all of the requirements installed:

$ apt-get install git php5 php5-curl php5-cli php5-mcrypt php5-json

then

$ wget https://github.com/laravel/laravel/archive/master.zip
$ unzip master.zip project
$ cd project
$ composer install --verbose 

to see a stack trace of the error, then post it here for more help.



Answered By - majidarif

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.