Kindly help me, I am new in Laravel framework
When I run my laravel project, it display error
[Class 'Oureastudios\Laravel\BraintreeServiceProvider' not found].
I also try and load through composer but composer not download and give error.
composer require oureastudios/laravel5-braintree:dev-master --prefer-dist
You are running Composer with SSL/TLS protection disabled.
./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 oureastudios/laravel5-braintree (dev-master 16ebcc6): Downloading (failed) Failed to download
oureastudios/laravel5-braintree from dist: The
"https://api.github.com/repos/oureastudios/laravel5-braintree/zipball/16ebcc610d9d0efef8a4ec28c19c8123586f10c2"
file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing oureastudios/laravel5-braintree (dev-master 16ebcc6): Cloning 16ebcc610d
Installation failed, reverting ./composer.json to its original
content.
[RuntimeException] Failed to clone
https://github.com/oureastudios/laravel5-braintree.git, git was not
found, check that it is install ed and in your PATH env.
'git' is not recognized as an internal or external command,
operable program or batch file.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--update-with-all-dependencies]
[--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest]
[--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--] []...
Thanks in advance.
that repository doesnt exist anymore.
try this one instead
https://github.com/odannyc/laravel5-braintree
composer require odannyc/laravel5-braintree:dev-master --prefer-dist
Related
Does anyone know why this keeps happening at "composer install" ?
and how to fix this ?
C:\Users\1337\Desktop\wafasalaf>composer install
Gathering patches from patch file.
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 152 installs, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
- Installing drupal/core (8.9.16): Loading from cache
- Applying patches for drupal/core
modules/patches/block-remove-logger-warning.patch (Remove not found blocks warning.)
Could not apply patch! Skipping. The error was: Cannot apply patch modules/patches/block-remove-logger-warning.patch
[Exception]
Cannot apply patch Remove not found blocks warning. (modules/patches/block-remove-logger-warning.patch)!
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
This is resolved, I had a problem on windows where Patch was not identified.
All I had to do is put the path link of the patch.exe in my system environments (if you have git for windows it's already installed & you'll find it in "C:\Program Files\Git\usr\bin").
When I try to run composer update | composer install | composer require, I got this error on the Production server:
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may
be getting outdated dependencies. Run update to update them.
Package operations: 19 installs, 55 updates, 0 removals
In Filesystem.php line 182:
/var/www/html/vendor/kylekatarnls/update-helper does not exist and could not be created.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-
installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--
verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--
ignore-platform-reqs] [--] [<packages>]...
Normally , it run across issue Do not run Composer as root/super user! See https://getcomposer.org/root for details when to execute sudo composer require somePackage.
Here is my record for installing swiftmailer.
Firstly to execute composer require somePackage without sudo.
debian9#machine:~$ composer require "swiftmailer/swiftmailer:^6.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
/home/debian9/vendor/doctrine/lexer does not exist and could not be created
.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
Let's try with sudo.
debian9#machine:~$ sudo composer require "swiftmailer/swiftmailer:^6.0"
Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing doctrine/lexer (v1.0.1)
Downloading: 100%
- Installing egulias/email-validator (2.1.6)
Downloading: 100%
- Installing swiftmailer/swiftmailer (v6.1.3)
Downloading: 100%
egulias/email-validator suggests installing ext-intl (PHP Internationalization Libraries are required to use the SpoofChecking validation)
swiftmailer/swiftmailer suggests installing ext-intl (Needed to support internationalized email addresses)
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
Writing lock file
Generating autoload files
I am confused that without sudo ,swiftmailer can't be installed,with sudo ,an error occur Do not run Composer as root/super user!.
You've probably run Composer with sudo in the past. This has left some of the directories under vendor/ owned by root, preventing you from using Composer normally.
Change ownership on the entire vendor directory to your shell user, or delete the directory entirely. (You will need to do this as root.) Once you have done so, you should be able to use Composer normally.
I'm trying to install laravel 5.7 by using this command
> composer create-project --prefer-dist laravel/laravel new_project dev-develop
But it's reflecting following error, also i disabled antivirus and firewall.
Installing laravel/laravel (dev-develop
b0651d2467f1428eadc505e1b3b4f5678611927c)
- Installing laravel/laravel (dev-develop develop): Loading from cache Created project in new_project
#php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating
dependencies (including require-dev) Package operations: 71 installs,
0 updates, 0 removals
- Installing vlucas/phpdotenv (v2.5.1): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download
vlucas/phpdotenv from dist: The
"https://api.github.com/repos/vlucas/phpdotenv/zipball/8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e"
file could not be downloaded : SSL operation failed with code 1.
OpenSSL Error messages: error:1416F086:SSL
routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto failed to open stream: operation failed
Now trying to download from source
- Installing vlucas/phpdotenv (v2.5.1): Cloning 8abb4f9aa8
[RuntimeException] Failed to clone
https://github.com/vlucas/phpdotenv.git via https,ssh protocols,
aborting.
- https,ssh://github.com/vlucas/phpdotenv.git
Cloning into 'D:\xamppro\htdocs\neologicx.com\new_project\vendor\vlucas\phpdotenv'...
fatal: I don't handle protocol 'https,ssh'
create-project [-s|--stability STABILITY] [--prefer-source]
[--prefer-dist] [--repository REPOSITORY] [--repository-url
REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers]
[--no-scripts] [--no
-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []
OpenSSL Installed
and enabled
Okay, my problem resolved by removing '%temp%' files from windows.
After that i got content-length mismatch problem resolved from this Composer Content-Length Mismatch
And then again i tried this "composer create-project laravel/laravel laravelproject1" it worked.
Thanks Alot everyone.
composer global require "laravel/installer"
--
laravel new myProject
Run these commands in order and you should be fine.
If you prefer to use the composer create project command, then run this:
composer create-project --prefer-dist laravel/laravel blog
try composer clear-cache then composer self-update
Please try this.
install laravel 5.7:
composer create-project laravel/laravel laravelproject1
I ran
composer self-update
then I added this in my composer.json
"iron-io/iron_mq": "*"
the ran
composer update
and
composer install
But now no matter what I do I'm getting this error
C:\Project>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
Fatal error: Class 'IronCore' not found in C:\Project\vendor\iron-io\iron_mq\IronMQ.class.php on line 118
Script php artisan optimize handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
Did something get corrupted what's going on? I tried to remove the line in composer but the error is stuck there now!
Uh... No idea what just happened.
Try to:
declare exact version: (latest for iron_mq: 1.4.5)
add line with iron_core dependency (should work without it though):
"iron-io/iron_core": "0.1.5"
EDIT:
Please test latest iron_mq version (1.4.6)