Node.js | NPM never comes as default for Laravel and we need to install it and in some cases we don't require them anymore or need to re-install if not installed properly in the earlier attempts so in either case we need to uninstall before installing again and it will take some time and efforts for uninstalling as well.
To uninstall Node.js and NPM from Laravel, take below steps :-
1 Open the Windows Control Panel.
2 Choose the Programs and Features option.
3 Click the “Uninstall a program”
4 Select Node.js, and click the Uninstall link.
Look for below folders and remove them (and their contents) if any still exist.
C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\{User}\AppData\Roaming\npm (or %appdata%\npm)
C:\Users\{User}\AppData\Roaming\npm-cache (or %appdata%\npm-cache)
C:\Users\{User}\.npmrc (and possibly check for that without the . prefix too)
C:\Users\{User}\AppData\Local\Temp\npm-*
Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.
In my case, its the F drive as I have installed in F drive.
If it's still not uninstalled, type where node at the command prompt and you'll see where it resides -- delete that (and probably the parent directory) too.
Reboot, for good measure.