raucao / rs-backup

Backup/restore data from/to any remoteStorage account
https://www.npmjs.com/package/rs-backup
10 stars 4 forks source link

fills screen with garbage, regardless of arguments passed #19

Closed DougReeder closed 2 years ago

DougReeder commented 2 years ago

to reproduce Under macOS 11.6.1, with node v14.16.1 installed:

  1. install with npm install -g rs-backup
  2. run with rs-backup

Expected outcome: console message: 'Please provide a backup directory path via the --backup-dir option'

Actual outcome: screen filled with garbage:

garbage from rs-backup
DougReeder commented 2 years ago

Works fine when run directly: node backup.js -o somedir

raucao commented 2 years ago

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!

raucao commented 2 years ago

Could have something to do with https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/

DougReeder commented 2 years ago

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.