Starts in:
1 DAY
10 HRS
7 MIN
39 SEC
Starts in:
1 D
10 H
7 M
39 S
Open Closed

How can Abp Cli and Abp Suite be configured to use Yarn instead of NPM? #3133


User avatar
0
dev1_premierpoint created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.2.2
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I've noticed in some screenshots that people have been able to configure Abp Install-libs and the Abp Suite to use Yarn instead of NPM. Here is an example from a forum post:

In my environment it always defaults to using NPM and I can't find any setting anywhere to change the default to Yarn - even though I have Yarn classic installed globally.

I have been told once previously by Abp support that this setting would solve the problem, but changing it has made no difference for me. Also, I am using Blazor Server - not Angular. This setting seems to be Angular-oriented:

<br> <br>


4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    What is the result when you run npm list yarn -g command.

  • User Avatar
    0
    dev1_premierpoint created

    Does this mean yarn is not installed globally?

    I have always used the .msi download from classic.yarnpkg.com to install and upgrade yarn.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try this?

    npm install --global yarn

  • User Avatar
    0
    dev1_premierpoint created

    Yes, that seems to have solved it:

    Thank you. Seems it all boils down to installing Yarn with NPM rather than with the .msi they provide.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06