Closed DougReeder closed 2 years ago
Works fine when run directly: node backup.js -o somedir
That outcome is unexpected indeed!
I have just verified that it works as expected with node 14 and standard bash on Linux. Unfortunately, I have no way of debugging it on macOS at the moment. @DougReeder If you could help with it, that would be fantastic!
Could have something to do with https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/
That appears to be the root cause. npm ci
doesn't work with the -g flag, so it's not clear how to install globally at the moment. Presumably github and npm will stop serving the problematic versions.
to reproduce Under macOS 11.6.1, with node v14.16.1 installed:
npm install -g rs-backup
rs-backup
Expected outcome: console message: 'Please provide a backup directory path via the --backup-dir option'
Actual outcome: screen filled with garbage: