I am trying to implement language translation in my app using the following plugin vue-i18n
I am following this documentation
https://github.com/martinlindhe/laravel-vue-i18n-generator
When I run the following code
composer require martinlindhe/laravel-vue-i18n-generator
in root#d722309335cd:/var/www#
I get the following error
root#d722309335cd:/var/www# composer require martinlindhe/laravel-vue-i18n-generator
Do not run Composer as root/super user! See https://getcomposer.org/root for details
---Using version ^0.1.30 for martinlindhe/laravel-vue-i18n-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
[UnexpectedValueException]
/var/www/vendor/composer does not exist and could not be created.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--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] [--apcu-autoloader] [--] [<packages>]...
What am I missing ?
Related
In laravel 8 I am trying to install laravel clockwork where i have php version 8.0.3 When I run
composer require itsgoingd/clockwork
command i got this error
Installing itsgoingd/clockwork (v5.0.8): Extracting archive Install of
itsgoingd/clockwork failed
Installation failed, reverting ./composer.json and ./composer.lock to
their original content.
[UnexpectedValueException]
'C:\xampp\htdocs\test/vendor/composer/tmp-454cb94cbea8cdcf70c06a4e0164fbba'
is not a zip archive.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist]
[--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install]
[--no-scripts] [--update-no-dev] [-w|--update-with-dependencies]
[-W|--update-with-all-dependencies] [--with-dependencies]
[--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ]
[--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest]
[--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader]
[--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...
Delete The file Composer.lock, Then run this command line:
composer require itsgoingd/clockwork
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>]...
My composer version is 1.9.0
I am trying to install drush . but got some error.
composer global require drush/drush:dev-master
Output :
Changed current directory to /root/.config/composer
[Composer\Downloader\TransportException] The
"https://repo.packagist.org/packages.json" file could not be
downloaded: Failed to enable crypto failed to open stream: operation
failed
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] [--] []...
When I run composer diagnose
Output :
I have created a new repository on GitHub. I have used GitHub Desktop to commit all files. All is done. But I can't create a new project with Composer.
Here is my repository:
https://github.com/xttrust/CodeIgniter-HMVC-EXTRA
I have tried to create a new project like this:
composer create-project xttrust/CodeIgniter-HMVC-EXTRA
I get this error in GitBash:
[InvalidArgumentException]
Could not find package xttrust/codeigniter-hmvc-extra with stability stable.
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] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
As Chris mentioned in a comment:
Have you submitted it to Packagist?
I had to merge it with Packagist, and it then worked.
No issue as the error is correct. Try searching Packagist. You will need to submit your github repo https://github.com/xttrust/CodeIgniter-HMVC-EXTRA
I got error when I do composer update, it says RuntimeException
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing mews/purifier (1.0.1)
[RuntimeException]
Could not delete /var/www/myproj.com/protected/vendor/mews/purifier/LICENCE.md:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer- lowest] [packages1] ... [packagesN]
does anyone have an idea about my case?