File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,13 @@ func Install(args []string) {
188188 }
189189
190190 // install composer
191- composerPath := filepath .Join (phpPath , "composer" , "composer.phar" )
191+ composerFolderPath := filepath .Join (phpPath , "composer" )
192+ if _ , err := os .Stat (composerFolderPath ); os .IsNotExist (err ) {
193+ theme .Info ("Creating .pvm/versions folder in home directory" )
194+ os .Mkdir (composerFolderPath , 0755 )
195+ }
196+
197+ composerPath := filepath .Join (composerFolderPath , "composer.phar" )
192198 composerUrl := "https://getcomposer.org/download/latest-stable/composer.phar"
193199 if desiredVersion .LessThan (common.Version {Major : 7 , Minor : 2 }) {
194200 composerUrl = "https://getcomposer.org/download/latest-2.2.x/composer.phar"
You can’t perform that action at this time.
0 commit comments