preserve-paths icon indicating copy to clipboard operation
preserve-paths copied to clipboard

RuntimeException with --no-cache option

Open wongjn opened this issue 5 years ago • 2 comments

Package throws a runtime exception with --no-cache option set when running composer install or similar:

$ composer --no-dev --no-cache -o install
Gathering patches for root package.
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 1 update, 0 removals

                                                                                                           
   [RuntimeException]                                                                                          
   /dev/null/preserve-paths/e1ecf99583a81f8bf0a10be879439cc0dc06d423 does not exist and could not be created.

wongjn avatar Jun 03 '20 12:06 wongjn

I'm running into the same issue as well. Once --no-cache was removed, the project installed successfully. Any luck?

kyletaylored avatar Jan 14 '21 23:01 kyletaylored

As a workaround, I omit the --no-cache option and then delete the cache directory manually as needed, e.g. composer install && rm -rf ~/.composer/cache

wongjn avatar Jan 14 '21 23:01 wongjn