npm update doesn't work? Uninstall first.
Edited: 19 Feb, 2025 11:06 CET
I have tried to update @stencil/core for some time now.
Nothing seemed to work.
npm view @stencil/core listed the latest version correctly.
npm update @stencil/core@latest said everything is up to date. Even when my installed version was 4.19.0 and the latest version is 4.26.0.
I tried npm update @stencil/core@latest, npm update @stencil/core@4.26.0, npm update @stencil/core@latest --save, npm install @stencil/core@latest, npm install @stencil/core@latest --save etc.
I even tried verifying the cache, but the cache was fine.
I updated to node@22 and npm@11, but this didn't help neither.
Finally, I decided to uninstall the current package and reinstall the latest version. Tada, it worked!
"Have you tried to turn it off and on again?"
Edit: The stencil docs say that we can use npm install @stencil/core@latest --save-exact, but this also fails updating the package.