Describe the bug
amplify pull then Ctrl-C'ing out of the process leaves both amplify and amplify-backup folders, so amplify pull a second time returns:
โฏ amplify pull
dest already exists.
Error: dest already exists.
at doRename (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/node_modules/fs-extra/lib/move-sync/move-sync.js:25:34)
at Object.moveSync (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/node_modules/fs-extra/lib/move-sync/move-sync.js:17:10)
at backupAmplifyFolder (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/attach-backend.js:66:12)
at attachBackend (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/attach-backend.js:13:5)
at Object.run (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/commands/pull.js:44:19)
at Object.executeAmplifyCommand (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/index.js:94:25)
at executePluginModuleCommand (/Users/ecclemm/.nvm/versions/node/v10.16.3/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:47:32)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
Amplify CLI Version
4.13.3
To Reproduce
amplify pullamplify pullExpected behavior
Cleanup on SIGINT.
Desktop (please complete the following information):
v10.16.3+1 experiencing the same issue while attempting to re-build my development environment on Cloud9.
+1 having the same issue, here is how I fixed it:
mv amplify amplify_backup && amplify pull
Most helpful comment
+1 having the same issue, here is how I fixed it:
mv amplify amplify_backup && amplify pull