I installed Laravel 4 and Composer yesterday to get started with laravel. I was following this guide http://fideloper.com/laravel-4-uber-quick-start-with-auth-guide and everything went well.
Today however when I tried to make my own laravel project by running
composer create-project laravel/laravel myproject"
in the terminal, I receive this message
?????????%
I have also tried cd to the project I made yesterday and ran
composer install
but again I get the same ???????%.
Has anybody experienced this problem before?
I am on Mac 10.8.4 and running PHP 5.3.6
Can you skip Step 2 from that url and
try
php composer.phar create-project laravel/laravel myproject see if this error re-occurs?
Related
I have currently installed the latest version of composer and laravel (6) . I inherited an older project running on 5.. I want to get a laravel framework up and running at 5.7 so I can run the old project. I tried :
composer create-project --prefer-dist laravel/laravel "5.7.*"
I keep getting the error: mkdir(): Permission denied.
I'm running this on Windows 10 gitbash and it doesn't recognize sudo.
I've also tried : composer create-project laravel/laravel="5.7.*"
and I also get the same error
Would appreciate the help :)
Try this:
composer create-project --prefer-dist laravel/laravel:5.7.* "Your_project_name"
I have tried to install the Symfony 4 on my Macbook Air by using Composer. I have used the below commands for installing and running Symfony application
composer create-project symfony/website-skeleton symfony4
cd symfony4
composer require server --dev
php bin/console server:run
And then tried to access the application in http://127.0.0.1:8000/. Below is the error message
Below image shows the error in which line and file
I am using PHP 7.2.3 and installed by using Homebrew. At the same time when I use the below command to install, Symfony welcome page appears without any error.
composer create-project symfony/skeleton symfony4
There is no default welcome page when you create new symfony flex application and there is an issue and a pull request already.
Everything is working fine you just don't have any pages.
Here you can read how to create a symfony page: https://symfony.com/doc/current/page_creation.html
i am lost...
i am trying to do it the right way and am following the Quick Start Guide for installing cakePHP 3 on my ubuntu machine.
Got composer installed. Directory is /var/www/cakephp
and am trying to issue:
php composer.phar create-project --prefer-dist cakephp/app mayapp
or
composer create-project --prefer-dist cakephp/app may app
then i am simply getting:
[InvalidArgumentException]
Could not find package cakephp/app with stability stable.
i do not have a clue what i am doing wrong. Any suggestions?
cakephp/app exists on https://packagist.org, and the command looks ok to me.
Which PHP version are you using? That package is only available with PHP 5.4.16 or later, so you must update if you want to use CakePHP.
However, it is a good idea to only use the same PHP version of your public hosting, using a newer version will lead to problems when deploying your code. If your webspace or public server does not have the latest PHP 5.6 running, ask for an update.
I got same issue. But, as previous answer, myapp does not exists on packagist.org, so, you must use laravel/laravel instead, and, after created, rename the new laravel folder to your desired name and move to htdocs (for xampp) or www (for wamp), then, and I do not know why, go to : localhost/laravel/public/
and replace laravel with the name you gave to your project folder instead the laravel one.
You will see Laravel 5 fonts will appear on screen.
That's means Laravel is running.
Hey Please try these steps.
Download XAMPP Server.
Install XAMPP server.
Go to ..\xampp\php\php.ini and open.
Add this line (extension=php_intl.dll) or if exist uncomment.
Download Composer setup from https://github.com/composer/windows-setup/releases/
Install composer and give php.exe file in path
Open cmd and check now php version using command php -v. if its showing php version its means its working.
Now open cmd and cd on xampp\htdocs folder & run command composer create-project --prefer-dist cakephp/app app_name
Finished folder created in htdocs.
Hope this is helpful for you.
I'm having trouble getting Laravel 4 installed locally. I am running this command:
composer create-project laravel/laravel {directory} 4.2 --prefer-dist
And I'm getting this error: http://screencast.com/t/LYb4tg178C
Notice the file path is getting a permission denied: /Users/zenlightenstudios/.composer/cache/files/laravel/laravel/1713d69ca8ea2ea520f648d7f4a86d0f0a53f84f.zip
However, I don't have a .composer folder in my user directory for zenlightenstudios.
Proof: http://screencast.com/t/0h9bAM9EZ
NOTE: I have composer installed locally in my projects folder.
Any help on this is appreciated!
UPDATE
Looks like running sudo before my command fixed my issue.
Looks like running sudo before my command fixed my issue.
I want to install Laravel 4.2 installation some packages via Composer. However, I am getting an error
“failed to clone git#github.com:symphony/Translation.git.git was not found. Check that it is installed in your path env. ‘git’ is not recognized as an internal or external command”
I want to use version 4.2.0 which is an older version of laravel. I’m successful to download if I do not mention version number but not when I include version number.
I tried:
C:\xampp\htdocs\laravel composer create-project laravel/laravel newapp 4.2 –prefer-dist
Or
C:\xampp\htdocs\laravel composer create-project laravel/laravel newapp –prefer-dist 4.2.0
Or
C:\xampp\htdocs\laravel composer create-project laravel/laravel newapp –prefer-dist 4.2.*
Or
C:\xampp\htdocs\laravel composer create-project laravel/laravel {{newapp}} 4.2.* –prefer-dist *
All with same error...
What do I need to make it work? Do I need to install git but How? i have no idea thanks for your help.
Note:I have latest composer downloaded yesterday July 24
Why do you want to use an old and not updated version of Laravel?
The first one is the correct way to install Laravel with composer/create-project.
Can you try to clone the laravel/laravel repository and to run composer udpate?
Lynda was a good source of information for me to learn Laravel(4.2) and if I recall there was a course that went into detail on installing Laravel on Windows, I could be wrong but if you have Git installed already you will also need to add it as a variable in your Paths to be used in your prompts.
The link below should help you in setting the Paths to Git and they should be something along these lines.
;"C:\path\git\bin";"C:\path\git\cmd"
http://www.computerhope.com/issues/ch000549.htm
I bullishly downloaded and installed GIT not knowing option to choose (used command prompt option) as Romain suggested , reboot and retried and it worked. Lynda indeed have a chapter on installation but did not mention Git so following instruction failed. Note: only trying previous version failed, was ok for latest laravel 5 version before installation of Git. Thank you all...one day lost of trying and testing but happy ending :)