Began to master REACT. Such a problem, I run on the command line to create a REACT project: create-react-app MyAppName I get an error:

at JSON.parse (<anonymous>) at Object.Module._extensions..json (module.js:668:27) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:52:21) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) 

read version with npx, npx create-react-app myAppName npx error: installed 1 in 12.735s The C: \ Users \ Ustas \ AppData \ Roaming \ npm \ node_modules \ create-react-app \ index.js C: \ Users \ Ustas \ AppData \ Roaming \ npm \ node_modules \ create-react-app \ package.json: Unexpected string in JSON at position 520

I read that you need NPM version 4 ...., because of this problem. I have NPM version 5.6.0

How to install the old version, and will it help? Somehow stupid. Can someone tell me how to create a REACT disc without dancing with a tambourine? Or roll back NPM to version 4 ...

    1 answer 1

    You need to install NVM (Node Version Manager) is a script that allows you to manage versions of Node. With it, you can switch between different versions of Node.

    https://github.com/creationix/nvm