I finally fixed mine! The problem was that after uninstalling npm, you should run this command.
npm cache clean --force
And then after that, you should reinstall the npm via
npm install
This worked combined with all the suggestions above for the variable path.