commercetools / merchant-center-application-kit

Tools and components for developing Merchant Center Customizations 🛠
https://docs.commercetools.com/merchant-center-customizations
MIT License
66 stars 27 forks source link

Starter template installation fails on Windows machines when using multiple drives #3555

Open emmenko opened 1 month ago

emmenko commented 1 month ago

Describe the issue

On Windows machines, installing a starter template with create-mc-app fails with Access is denied when attempting to move the template files.

Reference: https://github.com/commercetools/merchant-center-application-kit/discussions/1985#discussioncomment-9814437

To Reproduce Steps to reproduce the behavior:

  1. Use a Windows machine with the D: drive
  2. Run the create-mc-app command to install a starter template
  3. The CLI fails at the step Copying template starter into project directory

Expected behavior

The CLI create-mc-app works also on Windows machines when using the D: drive.

Additional context

It appears that the move command (what is used by the CLI to "copy" the template folder) does not work in Windows across drives (C:D:).

The only way to make it work is to copy the files (not move them).