Nativescript-cli: tns run android Invalid Version: ^6.5.3

Created on 22 Feb 2021  路  3Comments  路  Source: NativeScript/nativescript-cli

Environment

  • CLI: 7.2.0
  • Cross-platform modules: 7.1.0
  • Android Runtime: 6.5.3
  • ns-Angular: 11.0.0

Describe the bug
When running tns prepare android or run android, the result is:

Error while loading nativescript-cloud is: Default commands should be required before child commands
Preparing project...
Invalid Version: ^6.5.3

I've tried 7.01 but the result is the same.

To Reproduce
Type "tns prepare ios" with the versions above.

Expected behavior
Builds project

Additional context
iOS builds without a problem.

bug

All 3 comments

Can you try without the ^ - just edit package.json and remove the caret & re-run.

O wow. OK, that worked. I'm baffled as to how that is possible. But happy that it works! Thanks @rigor789

I'll reopen this - as this is something that the CLI should handle.

Was this page helpful?
0 / 5 - 0 ratings