Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How To Uninstall Yarn?

Asked by Dan Peters Aug 4, 2023 885 views 4 answers
Share

About this question

After installing yarn for a demo, I am trying to run a react project utilizing npm. However, it keeps changing to Yarn. How to uninstall it?

Your answer

4 Answers

Nolds Latest answer

Answered on May 26, 2025

To uninstall Yarn from your system, simply open the terminal and run the command `npm uninstall -g yarn`. Then, delete any `yarn.lock` files in your project directory to prevent Yarn from being used automatically. This way, your project will use only npm.

traffic road

Was this helpful?

Finnbentley

Answered on Mar 14, 2025

After uninstalling Yarn, you can ensure that your React project uses npm by running the following commands in your project directory:


Install Dependencies:

If you have a package.json file, run: io games


Copy

npm install

Was this helpful?

Bekeanloinse

Answered on Oct 9, 2024

Check if there are any Yarn configuration files in your project directory and delete them:

yarn.lock: If you have this file in your project folder, delete it as it will prioritize Yarn over subway surfers npm.
.yarnrc or .yarnrc.yml: These files are Yarn configuration files that may exist in your project. Delete them if present.

Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.