Problem installing extended template [ErrorException] touch (): Utime failed: permission denied

I use YII2 for my project, I created a project (advanced template) using a composer, now I need to run another project, firstly, I have a composer self-update , this is normal. Now I am trying to complete the extended YII2 template on my lamp using the composer, in the Configuring Composer step, getting the following error,

[ErrorException]

touch (): Utime failed: Permission denied

Can someone help me why the problem arises in the second installation?
Thanks

+5
source share
1 answer

You can run the composer as root or use the following command

 sudo composer create-project --prefer-dist yiisoft/yii2-app-advanced [project-name] 
0
source

Source: https://habr.com/ru/post/1233681/


All Articles