Can I have two versions of Nativescript co-exist.
Switch between pre 7 and 7+
Thanks.
You can use npx
to run multiple versions of nativescript. You should have it by default if you are running node 5.2 or higher. To run different versions of nativescript apart from the one that is globally installed, you can run the following commands:
// to create a new project with nativescript v6.5
npx nativescript@6.5 create newproject
// to run with nativescript v6.5
npx nativescript@6.5 run ios
And to use the globally installed nativescript cli, you can continue using the regular nativescript cli commands (without npx) - ns run ios
/ns create newproject