Page 1 of 1

Composer installation of Bootstrap ends with error of -1

PostPosted: June 6th, 2018, 10:20 am
by streible
Hi Everyone,

Since I'm in the midst of teaching myself more about PHP and I've been wanting to use Composer within VS 2017 and when the installation of Bootstrap ends, it ends with a status of "====composer command completed with exit code -1====" and nothing is installed within the project itself, but there are folders created in the directory for the project which pertain to Bootstrap which can be found under "vendor\twbs\bootstrap", so what can one expect to be happening with Composer? Is Composer the equivalent to Nuget in the .NET sense?

If someone could please advise and provide some direction, that would be appreciated.

Thanks,

Steve

Re: Composer installation of Bootstrap ends with error of -1

PostPosted: June 6th, 2018, 6:21 pm
by Miloslav Beno
Hi Steve,

yes, composer is basicaly nuget in PHP world.

Please take a look at the output pane (select composer there) to see what happened during installation of bootstrap, there might be some requirements not fulfilled or violated.

Re: Composer installation of Bootstrap ends with error of -1

PostPosted: July 6th, 2018, 10:25 am
by streible
I finally got around to getting back to this after a month since I've had some other things that have needed my attention and whether this is a new project or an existing, this is what I get:

====Executing command 'composer update --no-interaction --no-ansi'====

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

====composer command completed with exit code -1====

Loading composer repository...
Composer repository was successfully loaded.

====Executing command 'composer require "fortawesome/font-awesome" --dev --no-interaction'====

Using version ^4.7 for fortawesome/font-awesome
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing fortawesome/font-awesome (v4.7.0): Downloading (connecting...)
Downloading (100%)
Writing lock file
Generating autoload files

====composer command completed with exit code -1====

I attempted a simple update of Bootstrap and then installed Font Awesome and it reports the same exit code for both, so I'm not sure what an exit code of -1 means.

Any insight you could provide would be appreciated.

Thanks,

Steve

Re: Composer installation of Bootstrap ends with error of -1

PostPosted: July 10th, 2018, 8:56 am
by maros.beno
Hi, I was testing it and Composer reports to me, that that it completed with errors (result -1) as well. But composer package was installed correctly. I guess that it only says there was some error, but there wasn't one. We will look at it more closely, but I think you can ignore it for now, assuming the package installed and it's working for you. Does it?
Thank you for reporting this, if you have any other problems, don't hesitate to write us. Have a nice day.