[英]PHPStorm laravel issues
I was having a bit of trouble getting PHPStorm to work with laravel/composer. 使PHPStorm与laravel / composer一起使用时遇到了一些麻烦。
Upon opening PHPStorm, I created a new Composer Project: http://puu.sh/e4y1H/6fb97cf976.png 打开PHPStorm后,我创建了一个新的Composer项目: http ://puu.sh/e4y1H/6fb97cf976.png
After which, I filled in necessary the details: http://puu.sh/e4y6Z/55bc60e7fc.png 之后,我填写了必要的详细信息: http : //puu.sh/e4y6Z/55bc60e7fc.png
After continuing, I run into the following error: 继续后,我遇到以下错误:
php /Users/mdobrenko/Sites/test/composer.phar create-project laravel/laravel
/Users/mdobrenko/Sites/test/composer -n --no-progress
Installing laravel/laravel (v4.2.11)
- Installing laravel/laravel (v4.2.11)
Loading from cache
Created project in /Users/mdobrenko/Sites/test/composer
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing symfony/translation (v2.5.8)
Loading from cache
- Installing symfony/security-core (v2.5.8)
Loading from cache
- Installing symfony/routing (v2.5.8)
Loading from cache
- Installing symfony/process (v2.5.8)
Loading from cache
- Installing psr/log (1.0.0)
Loading from cache
- Installing symfony/debug (v2.5.8)
Downloading: connection... Downloading: 0% Downloading: 10% Downloading: 35% Downloading: 45% Downloading: 70% Downloading: 80% Downloading: 90% Downloading: 100%
- Installing symfony/http-foundation (v2.5.8)
[ErrorException]
touch(): Utime failed: Permission denied
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
The 'Sites' directory that I store my development projects in, which is where this project lives, has the following permissions set: 我将开发项目存储在其中的“站点”目录(该项目所在的目录)具有以下权限集:
drwxrwxrwx 11 mdobrenko staff 374 Jan 4 13:40 Sites
I noticed that most of my php artisan commands require the use of 'sudo'. 我注意到我的大多数php artisan命令都需要使用'sudo'。 Creating a new laravel project via the command: 通过以下命令创建一个新的laravel项目:
composer create-project laravel/laravel your-project-name --prefer-dist
I have a feeling permissions may be the issue, but I am unsure of how to fix this. 我觉得可能是权限问题,但不确定如何解决。 Any help would be appreciated! 任何帮助,将不胜感激!
This link should help. 该链接应该有所帮助。 Try clearing the composer cache, re-installing composer, Chown the Sites folder to the same user as the apache server uses 尝试清除作曲家缓存,重新安装作曲家,将Sites文件夹与apache服务器使用的用户相同
To clear the composer cache, open a terminal and cd into your project folder: sudo composer clear-cache
(sudo may not be required here) 要清除作曲家缓存,请打开一个终端,然后将cd插入您的项目文件夹: sudo composer clear-cache
(此处可能不需要sudo)
Changing permissions: chown -R $(whoami): .
更改权限: chown -R $(whoami): .
this sets the owner of all files and sudirectories to the current user. 这会将所有文件和子目录的所有者设置为当前用户。 giving you permission to access the files. 授予您访问文件的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.