I am trying to use the npm package "create-react-app" to get started on a project using WebStorm.
I npm install -g create-react-app to install the package around the world, and can use the package from the command line (i.e. create-react-app <proj name> ) create-react-app <proj name> .
However, when creating a project in WebStorm and using the path to the global package "create-response-app" (found using npm list -g ), I encounter this error:
/usr/bin/node /usr/local/lib/node_modules/create-react-app/index.js . /usr/local/lib/node_modules/create-react-app/createReactApp.js:589 .filter(file => !validFiles.includes(file)); ^ TypeError: validFiles.includes is not a function at /usr/local/lib/node_modules/create-react- app/createReactApp.js:589:33 at Array.filter (native) at isSafeToCreateProjectIn (/usr/local/lib/node_modules/create- react-app/createReactApp.js:589:6) at createApp (/usr/local/lib/node_modules/create-react- app/createReactApp.js:147:8) at Object.<anonymous> (/usr/local/lib/node_modules/create-react- app/createReactApp.js:134:1) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) Done
At some point did I make a mistake?
Sykej source share