yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

Running yarn commands is giving an error- Integrity check failed for "yargs-parser" #8930

Open Nehasoni988 opened 1 year ago

Nehasoni988 commented 1 year ago

In my existing Vue project if I am running the yarn install or yarn add package_name command, the following errors are occurring-

Screenshot from 2023-03-06 14-53-08 Screenshot from 2023-03-06 14-51-51

I need to install some new packages in my project but I am not able to install them because of the above error.

My environment details-

OS - Ubuntu 18.04.6 LTS

The following modules are installed globally in my system-

@vue/cli -  4.2.3
node- 14.19.0
yarn- 1.22.4
npm- 6.14.16

I also asked this question on StackOverflow with a bounty.

Please guide how to fix this issue.