Skip to content

tns update command doesn't work with yarn #4228

@miroslavaivanova

Description

@miroslavaivanova

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.1.0
  • Cross-platform modules:5.1.0
  • Android Runtime:5.1.0
  • iOS Runtime:5.1.0

Describe the bug
Set package manager to be yarn and try to use command: tns update. You will see exception: Could not update the project!

To Reproduce

  1. tns create app
  2. tns platform add android
  3. tns update

Expected behavior
Successfully update added platform and installed plugin

Additional context
console log exception:

 stdout: yarn remove v1.12.3
[1/2] Removing module tns-core-modules-widgets...
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
 
 stderr: error This module isn't specified in a package.json file.

Could not update the project!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions