Reactjs 从1.x更新到3.0.1时,react脚本生成失败

Reactjs 从1.x更新到3.0.1时,react脚本生成失败,reactjs,npm,Reactjs,Npm,出于显而易见的原因,我正试图从当前版本(1.1.4)迁移到最新的3.0.1,但我过得很不愉快 这是我当前的成功构建package.json { "name": "name", "version": "0.1.0", "homepage": ".", "private": true, "dependencies": { "ajv": "^6.9.1", "axios": "^0.18.0", "axios-debug": "0.0.4", "da

出于显而易见的原因,我正试图从当前版本(
1.1.4
)迁移到最新的
3.0.1
,但我过得很不愉快

这是我当前的成功构建
package.json

{
  "name": "name",
  "version": "0.1.0",
  "homepage": ".",
  "private": true,
  "dependencies": {
    "ajv": "^6.9.1",
    "axios": "^0.18.0",
    "axios-debug": "0.0.4",
    "date-fns": "^1.30.1",
    "formik": "1.2.0",
    "history": "4.7.2",
    "moment": "2.22.2",
    "localforage": "1.7.3",
    "prettier": "1.14.2",
    "react": "^16.8.1",
    "react-bootstrap": "0.32.4",
    "react-checkbox-group": "4.0.1",
    "react-datetime": "2.15.0",
    "react-dom": "^16.3.2",
    "react-render-debugger": "1.0.2",
    "react-router-dom": "4.3.1",
    "react-scripts": "1.1.4",
    "semantic-ui-css": "^2.4.1",
    "semantic-ui-react": "^0.87.1",
    "styled-components": "^4.2.0",
    "react-router-hash-link": "1.2.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}
所以我使用了
npm
所以运行
npm安装--save--save-scripts@3.0.1
安装新的
react脚本
版本,所有内容都已正确更新。我更新了其他一些作为dep需要的包。没有安全漏洞,一切都很干净,安装正确

我正在使用maven作为构建系统来构建我的应用程序,一旦它尝试执行
npm run build
它就会在
react scripts build

调试日志完全没有帮助。显示的唯一错误是
/node\u modules/.bin/react scripts:权限被拒绝

我尝试使用
chmod+x/node\u modules/.bin/react脚本更改权限,但没有成功

我已多次尝试删除
node\u模块
,并使用
npm ci
重新安装模块。关于我在github上发现的任何问题,我都试过了

我不确定还有什么不对劲

使用节点v11.9.0和npm 6.5.0

我是否需要以较小的版本增量进行更新?我真是不知所措

编辑
就我而言,
npm
有问题。在
package.json
中手动更新软件包版本似乎暂时可行。。。我需要弄清楚为什么
npm
对我来说是坏的

在尝试了一切之后,我只是在dir中使用
node\u模块
package.json
运行了
warn
,效果很好。