'illegal characters in npm cache path

I'm having big troubles with npm cache. When I'm trying to install create-react-app I get this error enter image description here

I understand that _cacache\tmp causes the error but when I try to change cache path to a normal path without _cacache\tmp I still get the same error. Is there any solution to this? I tried reinstalling node but it didn't help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source