Angular CLI with yarn

后端 未结 4 1252
无人及你
无人及你 2021-02-05 13:03

How to change package manager for Angular Cli v6.0.3 to yarn? I tried:

ng set --global packageManager=yarn

But Angular says:

相关标签:
4条回答
  • 2021-02-05 13:31

    you hav to update package manager from npm to yarn.

    ng set --global packageManager=yarn

    if you need back yarn to npm then

    ng set --global packageManager=npm

    0 讨论(0)
  • 2021-02-05 13:35

    To ng update using yarn you can also run:

    ng update --packageManager=yarn

    ng update --all --packageManager=yarn

    0 讨论(0)
  • 2021-02-05 13:44
    ng config -g cli.packageManager yarn
    
    0 讨论(0)
  • 2021-02-05 13:51

    You can set global configuration using

    ng config -g cli.packageManager yarn
    

    If you want to set the package manager for a particular project then go to the root directory of the project and use the following command

    ng config cli.packageManager yarn
    
    0 讨论(0)
提交回复
热议问题