No
yes
create-react-app
node -v
: v8.9.3npm -v
:4.6.1yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven鈥檛 ejected): C:\Users\chacker\my-react-app>npm ls react-scriptsThen, specify:
(Write your steps here:)
I am not able to start the next step because of these issues. I don't understand why npm is giving this issue is there any problem with my installation.
You probably don't have your node modules directory in your path. Does this work with npx
?
npx create-react-app my-app
Thank you. Its working with npx
E:>npx create-react-app sss
Creating a new React app in E:\sss.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! Unexpected end of JSON input while parsing near '...":7,"unpackedSize":22'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sathish\AppData\Roaming\npm-cache_logs\2018-06-12T11_17_48_875Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... package.json
Deleting sss / from E:\
Done.
can you suggest?how can create app?
Try running npx create-react-app my-app in an empty folder
This is the issue is mainly caused by two reasons:
if node version is correct and still getting same issue, try adding following path to environment variable,
add correct path from ur system.
C:\Users\vchaudhari\AppData\Roaming\npm.
close all command prompt windows and reopen
sometimes system restart also requires for windows
It is working you're the best
Most helpful comment
You probably don't have your node modules directory in your path. Does this work with
npx
?