run your cmd as administrator
This error is caused by having a space in your User name (i.e the name of your machine) for instance my machine name is Themba Alex, npx has an issue when such is the case, the solution to this is to open your terminal as{ administrator} and run this command:
npm config edit afterward go to every line that is starting with
;cache=C:\Users\Themba Alex\AppData\Roaming\npm-cache, remove the ; and remove the space on your username, write the first 6 letters and add "~1" i.e ;cache=C:\Users\Themba Alex\AppData\Roaming\npm-cache will now be cache=C:\Users\Themba~1\AppData\Roaming\npm-cache this will solve the issue
Originally posted by @AnkhEl in #9091 (comment)
run your cmd as administrator
This error is caused by having a space in your User name (i.e the name of your machine) for instance my machine name is Themba Alex, npx has an issue when such is the case, the solution to this is to open your terminal as{ administrator} and run this command:
npm config edit afterward go to every line that is starting with
;cache=C:\Users\Themba Alex\AppData\Roaming\npm-cache, remove the ; and remove the space on your username, write the first 6 letters and add
"~1"i.e;cache=C:\Users\Themba Alex\AppData\Roaming\npm-cachewill now becache=C:\Users\Themba~1\AppData\Roaming\npm-cachethis will solve the issueOriginally posted by @AnkhEl in #9091 (comment)