Repository navigation
Error while loading nativescript-cloud is: Default commands should be required before child commands #5404
Description
Activity
- changed the title
[-]CLI gives error Error while loading nativescript-cloud when trying to tun tns[/-][+]CLI gives error Error while loading nativescript-cloud when trying to run tns[/+]on Oct 1, 2020 - addedcloudDescribes issues related to cloud operationsDescribes issues related to cloud operations
on Oct 3, 2020 The command should continue running despite the error. Will be looking into why it happens.
Reacted by Luke Hardiman, Pedro Marins, Till Sanders, Johnny Jarecsni, Amjad Abujamous, J.D Nicholls, James Roome and PawełOk, the issue is that if you have
nativescript-cloudinstalled on your system (from older cli for example), it adds conflicting commands to the CLI and causes the issue. In particular it addsconfig get/setcommands that are now in the CLI by default.Since
nativescript-cloudin it's current form is not used - you can safely uninstall it withns extension uninstall nativescript-cloud
And the error should disappear.
Reacted by MrSnoozles, Luke Hardiman, Raef Akehurst, Nigel M Peters, Motyldrogi, David Kroese, Marco Marques, mrh1997, Kunal Deshmukh, Kunal Deshmukh and 17 more- changed the title
[-]CLI gives error Error while loading nativescript-cloud when trying to run tns[/-][+]Error while loading nativescript-cloud is: Default commands should be required before child commands[/+]on Oct 21, 2020 - pinned this issue
on Oct 21, 2020 This worked for me.
Reacted by Igor RandjelovicUninstalling the nativescript-cloud worked for me too!
ns extension uninstall nativescript-clouddoesn't work for me (command not found: ns), exist any other command to remove extensions?
Thanks!@jdnichollsc
tns extension uninstall nativescript-cloudperhaps? Though ifnsdoesn't exist on your machine, you are likely using an old version of the CLI that should not have the error in the first place... (i'm confused)Reacted by J.D NichollsReacted by J.D NichollsReacted by J.D NichollsOh excellent, it's working now! thanks for your help! <3
Reacted by Igor RandjelovicPerfectly working now! Thanks! ;o)
Mmm I've just upgraded from NS6 to NS7.1.2 and for me it doesn't seem to work...
Strange ... any command give me this error... except the simple ns --version... Obviously I've tried... ns, tns --> same error.Is there another way to remove Nativescript-cloud ?
The migration script shouldn't remove it if it unused with new version ?Ok simply from another terminal...tns (or ns) extension uninstall nativescript-cloud has worked. Cheers!
running latest CLI ... Sept 30th build
ns -v = 7.0.9-2020-09-30-180843-14270
running - tns debug android --env.aot --no-hmr --emulator
Error while loading nativescript-cloud is: Default commands should be required before child commands