Create-react-app: missing script: start

Created on 5 Dec 2019  路  11Comments  路  Source: facebook/create-react-app

at the end of installing react, react-dom and react-scripts... it shows me this message

A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.

and in my-app folder I have
node_modules (folder_
package-lock.json
package.json

my node version is -> v12.13.1
my npm version is -> 6.12.1

Most helpful comment

I uninstalled the create-react-app globally but still it showed:

"A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported."

All 11 comments

Fixed the issue as the create-react-app was installed globally a year ago. So now I need to uninstall the global version "npm uninstall -g create-react-app" and then run the installation flow it works fine.

I uninstalled the create-react-app globally but still it showed:

"A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported."

getting the same issue as well. uninstalling create-react-app globally did not help me either

this was what appeared in the console
PS C:\Users\shawn\Desktop\react_tutorial_2\todoapp> npm start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shawn\AppDataRoaming\npm-cache_logs\2019-12-07T06_39_45_317Z-debug.log

Found solution yarn create-react-app myapp

Fixed the issue as the create-react-app was installed globally a year ago. So now I need to uninstall the global version "npm uninstall -g create-react-app" and then run the installation flow it works fine.

Thanks ! this worked for me fine

I've got the same issue. I've uninstalled it, ran which create-react-app which returned nothing, cleared the npm cache, tried installing again via npx and npm, no joy. I got it working with yarn create react-app my-app

I navigated to my home folder, deleted create-react-app from my node_modules folder and it's all good. The uninstall command didn't work.

I navigated to my home folder, deleted create-react-app from my node_modules folder and it's all good. The uninstall command didn't work.

You have to do npm uninstall -g create-react-app to uninstall create-react-app , you are deleting create-react-app not these stuff
simply, npm uninstall -g create-react-app
then as you go,
npx create-react-app my-app
cd my-app
npm start
Happy hacking ! :)

npm uninstall -g create-react-app didn't work for a few of us. When I manually deleted the folder, it worked for me.

npm uninstall -g create-react-app didn't work for a few of us. When I manually deleted the folder, it worked for me.
i see your issue but
you have to uninstall globally on machine, deleting would do for local only, create-react-app installed globally don't allow new create-react-app version to install so try uninstalling globally.

It is interesting that this error is only for npm, thread works correctly, with npm tried with
npx create-react-app --template <cra-template>
but none of this is enough

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fson picture fson  路  3Comments

alleroux picture alleroux  路  3Comments

JimmyLv picture JimmyLv  路  3Comments

adrice727 picture adrice727  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  3Comments