DEV Community

Discussion on: Multiple Frontends with AWS Amplify

Collapse
 
bcsgbl profile image
bcs-gbl • Edited
  1. If is started a project with "amplify init" command everyting is OK.
  2. But if started with "amplify pull" (for example on a second frontend APP), I've got this error:

ˇˇˇ
amplify pull --appId d45659npivltuns --envName test
EPERM: operation not permitted, rename 'D:\web-nodejs\test\amplify' -> 'D:\web-nodejs\test\amplify-backup'
Error: EPERM: operation not permitted, rename 'D:\web-nodejs\test\amplify' -> 'D:\web-nodejs\test\amplify-backup'
at Object.renameSync (fs.js:741:3)
ˇˇˇ

Same error if just run an "amplify pull".

Im on Windows10, latest
I tried to:

  • reinstall npm and libs, with clearing all cache, dirs, so on
  • reinstall amplify-cli
  • reinstall amplify-cli with --unsafe-perm=true prameter And try this whole workflow:
  • with admin or simple user roles,
  • different consloles,
  • in WSL2
  • different & fully clean directories,

but i got tha same error.

If I copy the first APP's amplify directory to the second, every "amplify pull" command works..
Now, I have no idea..