Home > Software design >  Not able to use a npm start from WSL ( UNC paths are not supported )
Not able to use a npm start from WSL ( UNC paths are not supported )

Time:01-08

I am using WSL 2 on windows 11. When I am trying to use the termainl to create a react project it is giving me this error.

'\\wsl.localhost\Ubuntu\home\nisnym\t\learn'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

and here is the screenshot enter image description here

I also went through this already existing question, but it is not working for me. Question Link

If possible please help me fix this.

To be able to run and create react js apps.

– CherryDT suggested checking for node and npm install, I already did both installs enter image description here

CodePudding user response:

Their latest version seems broken. Even npx -y create-react-app@next does not seem to work with WSL2,

Try with 5.0.0:

npx -y [email protected] testapp
  • Related