Skip to content

Unmet peerDependencies break adding of platform #2965

@vchimev

Description

@vchimev

If there are not satisfied peerDependencies then adding a platform fails. This leaves the project in a broken state with the platform added as a dependency.

Steps:

git clone git@github.com:NativeScript/nativescript-sdk-examples-ng.git
cd nativescript-sdk-examples-ng
git reset 642bde0cbea6f70659972d6bbf1a2bb6f2f502a4
npm install
tns run ios --log trace

Details:

  • node v6.10.2
  • npm 4.2.0

Output:

Installing  tns-ios
spawn: npm "install" "tns-ios@3.1.0" "--silent" "--save-exact" "--save"
nativescript-sdk-examples-ng@0.1.0 /Users/vchimev/Work/git/nativescript-sdk-examples-ng
├── UNMET PEER DEPENDENCY tns-core-modules@3.2.0-2017-7-7-1
└── tns-ios@3.1.0

  ◠ Installing tns-iosspawn: npm "install" "tns-ios@3.1.0" "--silent" "--save-exact" "--save" "--json" "--dry-run" "--prefix" "/Users/vchimev/Work/git/nativescript-sdk-examples-ng"
Unable to apply changes on device: A81C3CED-87A4-41E9-B3C7-6613B4F2B533. Error is: cp: no such file or directory: /Users/vchimev/Work/git/nativescript-sdk-examples-ng/node_modules/tns-core-modules/framework/*.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions