When running npx (with any arguments, but -v is easiest to test) from the global install folder, the following error is produced.
The above error is due the white space contain in your username of PC. The command npx create-react-app doesn't work in this situation and shows error.
Solution :
- run
npm config edit
to edit your config - change
cache
path,e.g.
fromcache=D:\program file\npm-cache
tocache=D:\progra~1\npm-cache
No comments:
Post a Comment