function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mayank RanaMayank Rana 

Salesforce CLI is installed in my machine and set PATH, but when i'm running sfdx command in cmd, it throws error. I attached the snapshot of same. So many times I reinstalled it but nothing works.

User-added image
Best Answer chosen by Mayank Rana
Codey AnujCodey Anuj
Hi Mayank,

After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command.
Follow these steps after uninsalling plugins 
Select Start > Control Panel > Programs > Programs and Features.
Select SFDX CLI, and click Uninstall.
Inside your home directory, delete the .config\sfdx directory.
If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files.
Also Close your VS Code and start again if opened
Thanks 
Anuj Sahu

All Answers

Mayank RanaMayank Rana
If anyone came across with same error in past, please provide some solution, how this problem resolves.

Thanks in Advance.
Codey AnujCodey Anuj
Hi Mayank Rana,

Please use this command and run it:  sfdx plugins:uninstall salesforcedx
This will solve your problem I guess.

if it helps you please mark this as best answer.
Thanks 
Anuj Sahu
Mayank RanaMayank Rana
Thanks for the response Anuj, but it didn't help. Same error occur.
{tushar-sharma}{tushar-sharma}
It looks like the file you have downloaded is corrupt. I suggest you unistall everything, do a fresh download and then install, hope fully it work.

You can find all related inks here:
https://newstechnologystuff.com/2018/03/16/sfdx-a-new-way-of-development/
Codey AnujCodey Anuj
Hi Mayank,

After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command.
Follow these steps after uninsalling plugins 
Select Start > Control Panel > Programs > Programs and Features.
Select SFDX CLI, and click Uninstall.
Inside your home directory, delete the .config\sfdx directory.
If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files.
Also Close your VS Code and start again if opened
Thanks 
Anuj Sahu
This was selected as the best answer
Mayank RanaMayank Rana
Thanks Anuj and Tushar. Issue got resolved by the end of the day.
Deleted %LOCALAPPDATA%\sfdx directory in Program Files, earlier it was not deleted. 
jisn mosejisn mose
Sound good. Can this work on dynamic hosted website?I want to try my article (https://bestreddotsight.net/top-5-best-red-dot-sight-for-ak-47/) of red dot reviews.
Maira melonMaira melon
Thanks for this information. Its awesome i want to use for my blog (https://lite14.me/email-separator/).