tighten / jigsaw

Simple static sites with Laravel’s Blade.
https://jigsaw.tighten.com
MIT License
2.13k stars 181 forks source link

Installation Error, Docs Starter Template: Failed to open stream: Permission denied #650

Closed mikestratton closed 2 years ago

mikestratton commented 2 years ago

I am using PhpStorm on Windows.

From the command line, I ran:

mkdir my-site
cd my-site
composer require tightenco/jigsaw
vendor/bin/jigsaw init docs

Short error from CLI:

 30/33 [=========================>--]  90%    Update of tightenco/jigsaw failed

 33/33 [============================] 100%
In BinaryInstaller.php line 207:

  file_put_contents(C:\xampp\htdocs\mikestratton.net\laravel-jigsaw\docs\vendor\bin/jigsaw): Failed to open stream: Permission denied

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

There was an error running the command 'composer install'

Full Error from Command Line


> composer require tightenco/jigsaw-docs-template
Using version ^1.1 for tightenco/jigsaw-docs-template
./composer.json has been updated
Running composer update tightenco/jigsaw-docs-template
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking samdark/sitemap (2.4.0)
  - Locking tightenco/jigsaw-docs-template (v1.1.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Installing samdark/sitemap (2.4.0): Extracting archive
  - Installing tightenco/jigsaw-docs-template (v1.1.2): Extracting archive
 0/2 [>---------------------------]   0%
 1/2 [==============>-------------]  50%
 2/2 [============================] 100%
Generating autoload files
23 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 2 installs, 31 updates, 6 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Removing tightenco/jigsaw-docs-template (v1.1.2)
  - Removing illuminate/pipeline (v8.83.23)
  - Removing illuminate/macroable (v8.83.23)
  - Removing illuminate/collections (v8.83.23)
  - Removing illuminate/bus (v8.83.23)
  - Removing graham-campbell/result-type (v1.1.0)
  - Downgrading doctrine/inflector (2.0.4 => 2.0.3): Extracting archive
  - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
  - Downgrading voku/portable-ascii (1.6.1 => 1.5.6): Extracting archive
  - Downgrading symfony/translation-contracts (v3.1.1 => v2.3.0): Extracting archive
  - Downgrading symfony/polyfill-php80 (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/polyfill-mbstring (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/translation (v6.1.3 => v5.2.3): Extracting archive
  - Downgrading nesbot/carbon (2.61.0 => 2.44.0): Extracting archive
  - Downgrading psr/container (1.1.2 => 1.0.0): Extracting archive
  - Downgrading illuminate/contracts (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading illuminate/support (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading illuminate/container (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading illuminate/events (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading symfony/finder (v5.4.11 => v5.2.3): Extracting archive
  - Downgrading illuminate/filesystem (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading samdark/sitemap (2.4.0 => 2.2.1): Extracting archive
  - Downgrading symfony/deprecation-contracts (v3.1.1 => v2.2.0): Extracting archive
  - Downgrading symfony/polyfill-php73 (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/service-contracts (v2.5.2 => v2.2.0): Extracting archive
  - Downgrading symfony/polyfill-intl-normalizer (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/polyfill-intl-grapheme (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/polyfill-ctype (v1.26.0 => v1.22.0): Extracting archive
  - Downgrading symfony/string (v6.1.3 => v5.2.3): Extracting archive
  - Downgrading phpoption/phpoption (1.9.0 => 1.7.5): Extracting archive
  - Downgrading vlucas/phpdotenv (v5.4.1 => v4.2.0): Extracting archive
  - Downgrading symfony/yaml (v5.4.11 => v5.2.3): Extracting archive
  - Downgrading symfony/var-dumper (v5.4.11 => v5.2.3): Extracting archive
  - Downgrading symfony/process (v5.4.11 => v5.2.3): Extracting archive
  - Downgrading symfony/console (v5.4.11 => v5.2.3): Extracting archive
  - Installing mockery/mockery (1.4.2): Extracting archive
  - Downgrading michelf/php-markdown (1.9.1 => 1.9.0): Extracting archive
  - Downgrading illuminate/view (v8.83.23 => v7.30.4): Extracting archive
  - Downgrading tightenco/jigsaw (v1.3.43 => v1.3.35): Extracting archive
  0/33 [>---------------------------]   0%
  4/33 [===>------------------------]  12%
  7/33 [=====>----------------------]  21%
 14/33 [===========>----------------]  42%
 21/33 [=================>----------]  63%
 25/33 [=====================>------]  75%
 28/33 [=======================>----]  84%
 30/33 [=========================>--]  90%    Update of tightenco/jigsaw failed

 33/33 [============================] 100%
In BinaryInstaller.php line 207:

  file_put_contents(C:\xampp\htdocs\mikestratton.net\laravel-jigsaw\docs\vendor\bin/jigsaw): Failed to open stream: Permission denied

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

There was an error running the command 'composer install'
mikestratton commented 2 years ago

I was able to install the blog starter template without error.

mikestratton commented 2 years ago

It was a localized systems configuration error, I believe. I was running all commands directly from git bash from within PhpStorm, but not as a PhpStorm project. Once I initiated the project within PhpStorm, and ran the same commands, mix ran it worked perfectly.