• 8

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Install package on non-empty folder using composer

I tried to install package via composer but it's keep telling me that this directory is not empty so how can I install package on non-empty folder using composer ? is there force install command ?

error message:

  Project directory Yii-GZero-2b/ is not empty.

You currently cant. There is/was a discussion going on over on GitHub which you can read about here: https://github.com/composer/composer/issues/1135.

For now however, you'll need to create a new directory and then migrate your files over, or visa-versa.

  • 42
Reply Report
      • 2
    • I agree with cwallenpoole. I consider it a bug. I'm running VirtualBox using Vagrant. My vagrantfile contains the configs for the VM and needs to be in the project directory to run the VM. That means CakePHP won't install in the project directory because it is not empty with the VM configs there. This needs a solution.

For me giving the folder write access worked very well. On windows I right clicked on the mentioned folder and unchecked the Read Only checkbox and saved it and it worked. May be you could also give it a try hope it will work for you as well.

  • 1
Reply Report

Instead of run the command

composer.phar create-project flarum/flarum . --stability=beta

use the specific folder name, for example

composer.phar create-project flarum/flarum /var/www/html/forum/ --stability=beta
  • -4
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions