Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Installation can fail on Windows #14

Open
tony0918 opened this issue Aug 25, 2016 · 5 comments
Open

Installation can fail on Windows #14

tony0918 opened this issue Aug 25, 2016 · 5 comments

Comments

@tony0918
Copy link

Hi Team,
When I use command
composer create-project acquia/lightning-project:^8.1.0 MYPROJECT --no-interaction
to install lightning project, get following issue. Please refer to the screenshot.

Please help

image

@balsama
Copy link
Contributor

balsama commented Aug 25, 2016

Looks like you might have some outdated stuff in your composer cache. Can you try running:

$ composer clear-cache

You also might want to double check your global minimum stability setting if you have one.

@tony0918
Copy link
Author

Thanks for quick reply. I will try again. Maybe there is an network issue.

@tony0918
Copy link
Author

Got a new error. Any idea can help? Thanks.
image

@tgifford-webfirst
Copy link

It looks like @tony0918 was using Windows. There are two issues I had to fix to get this working on Windows:

  • Install in a folder with a short path (PHP on Windows does not support paths longer than 260 chars)
  • Pass an absolute path to ProcessExecutor->execute() method call in scripts\ScriptHandler.php:35

$executor->execute('npm run install-libraries', $output, realpath($lightning));

That will fix the error code 267 (The directory name is invalid.).

@tony0918
Copy link
Author

Right. It was on Windows with Git Bash.

@phenaproxima phenaproxima changed the title Failed to install lightning by composer Installation can fail on Windows Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants