nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Error while loading nativescript-cloud is: Default commands should be required before child commands

Open abcfoundry opened this issue 5 years ago • 10 comments

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

abcfoundry avatar Oct 01 '20 12:10 abcfoundry

The command should continue running despite the error. Will be looking into why it happens.

rigor789 avatar Oct 03 '20 21:10 rigor789

Ok, the issue is that if you have nativescript-cloud installed on your system (from older cli for example), it adds conflicting commands to the CLI and causes the issue. In particular it adds config get/set commands that are now in the CLI by default.

Since nativescript-cloud in it's current form is not used - you can safely uninstall it with

ns extension uninstall nativescript-cloud

And the error should disappear.

rigor789 avatar Oct 21 '20 11:10 rigor789

This worked for me.

MrSnoozles avatar Oct 21 '20 14:10 MrSnoozles

Uninstalling the nativescript-cloud worked for me too!

DavidKroese avatar Oct 29 '20 11:10 DavidKroese

ns extension uninstall nativescript-cloud doesn't work for me (command not found: ns), exist any other command to remove extensions? Thanks!

jdnichollsc avatar Oct 30 '20 07:10 jdnichollsc

@jdnichollsc tns extension uninstall nativescript-cloud perhaps? Though if ns doesn'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)

rigor789 avatar Oct 30 '20 08:10 rigor789

Oh excellent, it's working now! thanks for your help! <3

jdnichollsc avatar Oct 30 '20 18:10 jdnichollsc

Perfectly working now! Thanks! ;o)

mmarquesbr avatar Nov 04 '20 19:11 mmarquesbr

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 ?

lostation avatar Jan 17 '21 18:01 lostation

Ok simply from another terminal...tns (or ns) extension uninstall nativescript-cloud has worked. Cheers!

lostation avatar Jan 17 '21 18:01 lostation