2

I use yarn as package-manager but the first time I install nativescript I used;

npm install -g nativescript

Can I update the package using yarn add global nativescript?

NOTE: I run tns package-manager set yarn in my projects folder

leonheess
  • 16,068
  • 14
  • 77
  • 112
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
  • 1
    Yes, you could do that. It's just going to install fresh copy if none exists already Or just updates package. I guess the syntax should be `yarn global add nativescript`. Also you might have to update yarn path on bash profile. – Manoj Jan 04 '20 at 05:58
  • Vote on [this proposal](https://meta.stackoverflow.com/questions/354583/disentangle-the-yarn) to ease the tag confusion. – leonheess Feb 10 '20 at 12:35

1 Answers1

2

Yes ;

yarn global add nativescript

and

yarn global upgrade

updates packages which are installed by npm

Please consider checking migrating from npm

Thanks to @Manoj for answer

Cem Kaan
  • 2,086
  • 1
  • 24
  • 55