Nativescript 5 is out and I am trying to update the tns version. Currently it tns --version shows as 4.3.2.
I followed all the steps in https://docs.nativescript.org/releases/upgrade-instructions but it still gives me the version as 4.3.2.
How can I upgrade nativescript-cli so that tns --version shows me the latest version.
I did following to reflect the update Nativescript cli. You should only follow this when npm install -g nativescript@latest doesn't reflect update the cli. You can check that using tns --version before and after.
How I did update tns:
npm view nativescript version
to check latest aveilable on npmtns install -g nativescript
cmd
tns --version
- hopefully you will see 5.0.0
hope this helps.
Btw, you might need to run some additional commands for your projects if you already added platforms
tns platform remove {platform}
tns platform add {platform}
, where {platform}
is android
or ios
...also, you might run tns doctor
after upgrading as I noticed it broke my other components like choco
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With