Win 10 I want to create a REACT app according to native documentation https://github.com/facebook/create-react-app#creating-an-app I read according to the documentation:.

npx create-react-app my-app cd my-app npm start 

. (create-react-app module is installed). I run the npx create-react-app my-app command in the terminal. I get the error: npx: installed 1 in 4.073s The "path" argument must be of type string

what should be string? my-app already and in quotes took, all to no avail. What string do they want from me, tell me plz?

  • npm -v 5.6.0 installed - Alex
  • Try npm install -g npm@5.8.0 npm install -g npx@10.0.1 - DiDex
  • Installed, did not help. The same: - Alex
  • λ npx create-react-app myapp npx: installed 1 in 4.576s The "path" argument must be a type of string : \ Users \ MyUser \ AppData \ Roaming \ npm \ node_modules \ create-react-app \ package.json: Unexpected string in JSON at position 520 - Alex

1 answer 1

resolved. not that npx was called U must call npx with full path C: \ Users \ MyUser \ AppData \ Roaming \ npm \ npx.cmd create-react-app MyApp