Search code examples
nativescriptangular2-nativescript

How to upgrade nativescript angular dependencies with the "tns update"?


I want to upgrade my @angular dependencies in my package.json file.

I guess the documentation http://docs.nativescript.org/releases/upgrade-instructions show some way to do it with : tns update. I upgraded my cli to 2.4 but upgrade doesnt work!!

i called tns --help and there is no appearance of update.

How can i update/upgrade the @angular dependencies into package.json file?


Solution

  • Modify Package.json to include most latest version of dependency by prefixing symbol ^ to existing version number.Then delete all npm dependency from npm modules folder .Remove and add platform using cli commands

    'tns platform remove android 
     tns platfrom add android '
    

    it will download new packages from npm .But its better to go with default unless cli is updataed.