How to install Laravel-5-Generators-Extended in laravel-5 - laravel-5

I want to include way/generators on laravel 5. When I type the command
composer require laracasts/generators --dev
there comes the error of permission denied. The error is
[ErrorException]
file_put_contents(C:\ProgramData\ComposerSetup\bin): failed to open stream:
Permission denied
I think its about the write permission, but I can't figure it out.

Related

Jetstream laravel on ubuntu 20.04

how can I create laravel project with jetstream on ubuntu 20.04. On their official page I need to run this command:
composer require laravel/jetstream
Before this I configured environment for laravel and got installed laravel installer globally. After I run this command to get jetstream it says:
[ErrorException] file_put_contents(./composer.json): failed to open stream: Permission denied
I have tried something like:
sudo chown -R $USER ~/.composer/
and
sudo chown -R user ~/.composer/
But then I get this:
No such file or directory
Did you try running it wirh root rights?
sudo composer require laravel/jetstream

ErrorException failed to open stream: Permission denied on composer install

I had a laravel app on github and I want to clone on other computer .
After I cloned the repository and run composer install command it shows me this error:
[ErrorException]
copy(/Users/cosminciolacu/.composer/cache/files/symfony/debug/824e1c185cf2cd
10402999589458f4be7ef980e1.zip): failed to open stream: Permission denied
what I missed?
You may need to change the ownership and permissions of the directory you have installed the project in.
cd /path/to/project
sudo chmod -R 775 .
sudo chmod 660 .env
If the first answer did not work, do sudo composer install instead of composer install.
Warning: well, said in comment section.

Laravel 5.8 - I try to install node_module and am getting 'error permission denied'

I install the Laravel 5.8 version, install npm, and then I am getting an error related to permissions.
I also used sudo nmp install, but I am again getting an error:
webpack cli 3.* is not installed
and an Node.js permission denied error displayed so many times. How can I resolve this?

Installing Laravel gives Error

I try to install Laravel 5.4 in windows 10 but during the installation it gives this error :
The "https://getcomposer.org/versions" file could not be downloaded:
php_network_getaddresses: getaddrinfo failed: Hôte inconnu. failed to
open stream: php_network_getaddresses: getaddrinfo failed: Hôte
inconnu.
open the terminal (Win + R) and run composer check if it works or not ?
if it works then you have to refresh the web server by running this command .
sudo /etc/init.d/apache2 restart OR sudo /etc/init.d/apache restart
else install the composer once again . Watch here
then run this command for installing laravel
composer create-project --prefer-dist laravel/laravel blog "5.4.*"

Error on Installing Laravel or Lumen

Whenever i install laravel i get this error. Is there a problem with my system or there is any firewell issue which is blocking the installation.
I am using ubuntu with PHP 5.6.30-7+deb.sury.org~trusty+1 (cli).
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Composer have to use a proxy.
Linke here: PHP Composer behind http proxy and Composer cannot download files
It will be like :
export HTTP_PROXY="http://my-corp-proxy.mcdonalds"
And then :
php composer.phar install

Resources