rahulpsd18 / cognito-backup-restore

AIO Tool for backing up and restoring AWS Cognito User Pools
MIT License
196 stars 63 forks source link

Issue with DOS line endings #29

Open kanerogers opened 4 years ago

kanerogers commented 4 years ago

Hi there!

I installed cognito-backup-restore@1.3.1 using yarn global add

success Installed "cognito-backup-restore@1.3.1" with binaries:
      - cbr
      - cognito-backup-restore
✨  Done in 14.36s.

However, when running the executable cbr, I was greeted with this error:

kanerogers@Kanes-MacBook-Pro ~/.c/y/g/n/c/n/.bin> cbr
env: node\r: No such file or directory

To fix this, I simply ran dos2unix on the executable:

kanerogers@Kanes-MacBook-Pro ~/.c/y/g/n/.bin> dos2unix ../cognito-backup-restore/build/cli/cli.js
dos2unix: converting file ../cognito-backup-restore/build/cli/cli.js to Unix format...

And now it runs fine!

kanerogers@Kanes-MacBook-Pro ~/.c/y/g/n/.bin> cbr
? Choose the mode (Use arrow keys)
❯ Backup
  Restore