jpelaa / create-copyright-header

CLI - to add copyright and license header to all files in the project

Home Page:https://www.npmjs.com/package/create-copyright-header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails on Mac with no helpful error message

mingamellsIDBS opened this issue · comments

Running on a MacBook, I get the following error:

? Enter the copyright header content › Waiting for editor...node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Not that helpful to me. May be of use to the developers. No clue as to why it was unable to open an editor, or how I should set a default one!