-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect update hint for global installs #279
Comments
Hey, could you please share your Node.js and npm versions? We use update-notifier for this, which I think should handle this correctly already. @ui5/cli v1.13.1 used v4.0.0 of that module. |
|
Could you please try to run this and post the printed result? cd /home/linuxbrew/.linuxbrew/lib/node_modules/@ui5/cli
node -p "require(\"global-dirs\")" It should log the paths which are used to detect whether the package is installed globally. |
|
That looks fine and the check should detect that the module is installed globally. Could you please give some more details to allow us reproducing this on our side? Regarding your second point about major updates: |
WSL with Ubuntu 18.04 |
Thanks, I'll try to reproduce the issue there. |
I went back to 1.13.1 by doing
In addition, this time when I follow this with |
There's a delay of 24 hours from detection until the update hint is displayed: https://github.com/yeoman/update-notifier#how |
I could reproduce the issue with Ubuntu 18.04 on WSL. I'll collect all details to open an issue in global-dirs, as this is a general problem, not related to our CLI. Update: |
@matz3 Nice find! |
Closing this issue, please see sindresorhus/global-directory#17 for further progress |
FYI
npm i -g @ui5/cli@latest
doesn't upgrade a major version either.npm i -g @ui5/cli 2
will update to latest (2.4.4).The text was updated successfully, but these errors were encountered: