I need to show updates for a public npm package, Rapid React. Unfortunately update-notifier
doesn’t seem to work. I debugged the notify()
function by adding logs and found out the following.
console.log(!process.stdout.isTTY, suppressForNpm, !this.update); // false true true
// the if statement turns out to be true and code execution returns from here
if (!process.stdout.isTTY || suppressForNpm || !this.update || !semver().gt(this.update.latest, this.update.current)) {
return this;
}
const updateNotifier = require('update-notifier');
const pkg = require('../package.json');
updateNotifier({ pkg }).notify();
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too