Please run npm config command and see if TMP variable is set to a single path.
npm config ls -l
Check the values of TMP, TMPDIR and TEMP environment variables and ensure they are set to a single path.
This may be related to the issue discussed in this thread.