-
Notifications
You must be signed in to change notification settings - Fork 71
npx throwing Error : EPERM : operation not permitted with spaces in path : on windows #48
Comments
Similar issue, My username is two words with a space, this seems to be a long standing issue.
Original Bug here: zkat/npx#100 Windows 10 1909 |
Looks like the solution and pull request were done here: zkat/npx#181 |
I'm new to javascript / node / npm but looks like since the solution is already done I might be able to do the work to create a pull request to get this merged in. I don't really want to waste my time if its just going to end up like previous PR though. Please let me know if I can be of help here. |
Work-around until this almost 3 year old bug is fixed: Windows PowerShell with admin rights:
|
Workaround that worked for me: |
I have fixed this issue with the following steps: -- step 2: navigate to this directory "C:\Users{YOUR_USERNAME}\AppData\Roaming\npm" and open git bash. -- step 3: re-run "npx create-react-app my-app". *Note: Please step-by-step, NOT JUMP OR SKIP. |
@rohitbakoliya That's a workaround that requires extra software and steps, and the bug still persist. EDIT |
Maintainer isn't going to do anything about it anyways: |
That's not what that comment says; it says they definitely are going to do something about it, later. |
Workaround for this 3 year old bug:
Original workaround from another git comment section. Shamelessly copied. |
This worked for me - |
Related to: #6 |
npx returns above Error while running npx create-react-app my-app
This error is due to spaces in username or in path
like : C:\Users\Rohit Bakoliya
##Error Log
.npmrc contains wrong path
in my case : it is
prefix=C:\Users\Rohit
I tried to change it to correct path.
but its not working.
The text was updated successfully, but these errors were encountered: