PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 6, 2022

[FIXED] composer laravel create-project windows 10 mkdir permission denied

 January 06, 2022     composer-php, homestead, laravel, windows-10     No comments   

Issue

I have just installed Laravel Homestead on my computer running Windows 10 and now I'm trying to create my first project with Composer.

I have cd:ed into the right folder called Code after doing vagrant ssh.

composer create-project laravel/laravel Project1 --prefer-dist

returns an error.

[ErrorException] mkdir(): Permission denied

Must be some kind of error with Composer permissions. How can I fix it?


Solution

I solvet it temporarily with a solution that I'm not fully satisfied with, but at least it works.

sudo chmod 777 code-folder-name

Did this in the vagrant root folder.



Answered By - bödvar
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing