magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Composer install - question

Open Crustymd opened this issue 11 years ago • 14 comments

So after running on local machine the command "composer install" it gets quite good but appears to show something interesting at the end

http://prntscr.com/5fltoi

And the setup will not run

http://prntscr.com/5fludt

Crustymd avatar Dec 11 '14 14:12 Crustymd

@Sanuch This was the error under /magento2 directory

and here is what i get under /magento2/setup

http://prntscr.com/5flvyd

Crustymd avatar Dec 11 '14 14:12 Crustymd

@Crustymd the messages after composer install are just suggestions. It is required to run it both in the root and setup folders. We are working on consolidating it into one step. Please let us know if you still see the error after running composer install in both folders.

mazhalai avatar Dec 11 '14 14:12 mazhalai

@mazhalai Yes i still see the error after installing in both folders

Crustymd avatar Dec 11 '14 14:12 Crustymd

Can you verify if the following directories and files exist after composer install <magento root>\vendor\autoload.php <magento root>\setup\vendor\autoload.php

Also, verify that the apache user has permissions to access the <magento root> folder as well as sub folders.

mazhalai avatar Dec 11 '14 15:12 mazhalai

@mazhalai

yes those file exist and apache has access to magento root folder and sub folders

Crustymd avatar Dec 13 '14 09:12 Crustymd

what version of composer do you have? Also, does Magento components show up correctly within vendor/composer/autoload_psr4.php. If you are still having problems, please try updating your composer using composer self-update

mazhalai avatar Dec 15 '14 16:12 mazhalai

@Crustymd , did the solution with composer self-update help?

buskamuza avatar Dec 19 '14 19:12 buskamuza

Will check tomorrow morning

Crustymd avatar Dec 19 '14 19:12 Crustymd

Thabk u for reply )

Crustymd avatar Dec 19 '14 19:12 Crustymd

@Crustymd, we'd like to hear further feedback from you. Did the solution suggested by @buskamuza help?

verklov avatar Dec 30 '14 12:12 verklov

When I downloaded latest version of Magento2 form Github (using clone) and then composer self-update and composer install it installed all files within magento2 dir but I can't runt composer install in magento2/setup as it doesn't contain composer files.

So setup route displays just a blank white page.

snky1987 avatar Jan 05 '15 12:01 snky1987

@snky1987 , it's not required to run composer install in setup folder anymore. Installation should work as soon as you run composer install in the root directory. Could you, please, enable PHP errors (display_errors = On and error_reporting = E_ALL in your php.ini) and see if any errors appear on the installation page? If you have xDebug enabled, please, set xdebug.max_nesting_level=200 in php.ini

buskamuza avatar Jan 06 '15 00:01 buskamuza

@buskamuza Thanks, it was my mistake. I didn't notice that Magento use Angular JS for installation process and before I started to play with Magento I tested my client's travel agency application if works without JS enabled :) This caused white screen on setup.

snky1987 avatar Jan 06 '15 09:01 snky1987

Hi @Crustymd, we haven't heard back from you and, thus, will proceed with closing this issue. In case you have any additional questions, please don't hesitate to submit a new GitHub issue.

sshrewz avatar Feb 02 '15 18:02 sshrewz