简体   繁体   中英

Error running 'composer install' on cpanel server using PuTTY

I have connected my cPanel access using PuTTY to install Composer to be able to run my Symfony application. On running composer install command on the server, I am getting this message as a throwback

composer could not find a composer.json file in /home/mydomain to initialize a project please create a composer.json file

I am kind of confused as I don't know where to create the composer.json on my server.

Please can someone assist am a newbie to this.

Move to your project's root directory (Where the structure is App/, src/, Web/, composer.json).

Execute composer install from there.

If you're project is empty ATM just create a composer.json file where you want your project to be and put in it the content of the composer.json of your working local project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM