Reactjs npm开始在create react应用程序中不工作:缺少脚本:开始

Reactjs npm开始在create react应用程序中不工作:缺少脚本:开始,reactjs,npm,create-react-app,npm-scripts,Reactjs,Npm,Create React App,Npm Scripts,我尝试通过以下操作更新我的create react app版本: 如果您以前通过npm在全球范围内安装了create react应用程序 安装-g create react应用程序,建议您卸载该软件包 使用npm uninstall-g create react应用程序确保npx始终使用 最新版本 但现在,当我运行npm start时,会收到一条错误消息: missing script: start 但是在我的应用程序的package.json中,我找到了开始脚本: { "name":

我尝试通过以下操作更新我的create react app版本:

如果您以前通过npm在全球范围内安装了create react应用程序 安装-g create react应用程序,建议您卸载该软件包 使用npm uninstall-g create react应用程序确保npx始终使用 最新版本

但现在,当我运行npm start时,会收到一条错误消息:

missing script: start

但是在我的应用程序的
package.json
中,我找到了开始脚本:

{
  "name": "dropzone-montessori",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-scripts": "3.2.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

有人知道发生了什么吗?

尝试
npx react scripts start
验证react脚本是否安装在本地。如果没有,则您必须再次运行npm安装。请确认您与package.json文件位于同一目录中。只需使用npm安装重新安装包,然后启动节点模块(npm start),它仅在我使用重新安装应用程序时才起作用