Error code 2502 and 2503 while installing node JS

Hello everyone
I have tried to install Node JS on Windows 10. Unfortunately the installation proces doesn´t finish because of a problem with the error codes 2502 and 2503.
I have seen a couple of videos on Youtube, that apperently solve the problem by going to the temp folder in the Windows folder and changing the permissions to ful control for everyone. I am not so sure if it is the secure and the right way to resolve the problem.
I have also looked at the " documentation" for Node JS without any succes.
I hope somebody have a reliable solution.
With greetings