You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me, this gives the error "Failed to move C:\test\demoMigration\data\uploads to public\uploads".
I'm not sure what else to do here, but I do notice that the "demoMigration\data\uploads" folder/file is never created, which is probably why it can't be moved to the "public\uploads" folder. I hope this helps!
The text was updated successfully, but these errors were encountered:
Even running cmd as Administrator and resetting folder permissions doesn't fix the issue, so I'm unsure if this is a personal PC problem or a wider issue.
If some other Windows users can try this and confirm that it's not happening to them, I'll accept this as an issue on my side, and close the issue.
I was pretty confused why we were doing await fse.rename(uploadDataPath, uploadPath); in the seed.js file, but now I think this is a mistake within the code.
If I change that line to await fse.move(uploadDataPath, uploadPath, {overwrite: true});, the script runs completely as intended; all data and images successfully seed!
I'll make a PR if I have time; it's only a one-line fix anyway :)
Running Windows 10 64-bit, with node v14.18.2 and yarn v1.22.19
To reproduce:
git clone https://github.com/PaulBratslavsky/demoMigration.git
yarn
.yarn seed
.For me, this gives the error "Failed to move C:\test\demoMigration\data\uploads to public\uploads".
I'm not sure what else to do here, but I do notice that the "demoMigration\data\uploads" folder/file is never created, which is probably why it can't be moved to the "public\uploads" folder. I hope this helps!
The text was updated successfully, but these errors were encountered: