I can't use react on WSL2

Rafael Martins 21 Reputation points
2023-08-26T19:52:53.0333333+00:00

I'm having a problem, I still could not solve:

('wsl.localhostUbuntuhomerafaelwork-projectsfirstapp')

CMD.EXE was started with the above path as the current folder.

UNC paths are not supported. Defaulting to Windows folder.

'react-scripts' is not recognized as an internal command

or external, an operable program or a batch file.

This appears when I try to create a react application in wsl, in cmd windows goes well, does anyone know how to revolve?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,746 Reputation points
    2023-08-28T11:40:03.0266667+00:00

    Hello,

    First of all, I would recommend to check the prerequisites and set up for React over WSL. You can find steps and information in the next official article: https://learn.microsoft.com/en-us/windows/dev-environment/javascript/react-on-wsl

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.