Closed nexdrew closed 8 years ago
Instead of silently ignoring the update-notifier
crash, I opted to print a banner about the failure instead, with a note about how to fix it:
I'm not crazy about it, but I think keeping npme
up-to-date is worth the annoyance.
Found problem testing 3.7.0 with
update-notifier
file permissions. This is somewhat of an uglyhackfix to handle cases of running thenpme
bin between sudo/root and non-root users.~/.config/configstore/update-notifier-npme.json
file) when runningupdate-notifier
update-notifier
on prescribed installation (sudo npm i -g npme --unsafe
) by using a hidden alias of theinstall
command for thepostinstall
scriptupdate-notifier
update message to saysudo npm i -g
instead ofnpm i -g
The goal of item 2 is to check for updates when running the bin with valid non-autoinstall command (by decorating each command
builder
function) or with invalid/missing command (via custom yargs failure handler and strict mode).I have tested this on an existing instance that already had npmo/npme installed, but I still need to test it against a fresh install instance. Will do that via
next
tag after merging this.