简体   繁体   中英

How to install older version of Laravel (5.7) using newest composer

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM