0 votes
ago in Education by (1.7m points)
after installing composer I tried to install larvel but it gives ErrorException .please help....

data from composer cmd console:-

C:\xampp\htdocs\new>composer global require "laravel/installer"

Changed current directory to C:/Users/Dell-17/AppData/Roaming/Composer


  file_put_contents(C:\ProgramData\ComposerSetup\bin): failed to open stream:

   Permission denied

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-auto

loader] [-a|--classmap-authoritative] [--] [<packages>]...

JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
ago by (1.7m points)
You need to set correct permissions on C:\ProgramData\ComposerSetup\ folder recursively (including subdirectories), so installer could write files in it. You can use some tutorial to learn how to do this.