如何解决“远程:npm ERR! cb()从未调用过! React应用程序部署到Heroku时出现问题?

时间:2019-01-04 13:32:08

标签: node.js heroku npm

我正在尝试将一个create-react-app部署到Heroku,但一直保持远程状态:npm ERR! cb()从未调用过!”。我已按照此处的说明进行操作:https://github.com/mars/create-react-app-buildpack#create-the-heroku-app

我已经在类似线程中寻找解决方案,但是没有任何效果。我也已升级到最新的节点和npm。

这是我的package.json:

{
  "name": "go-predict",
  "version": "0.1.0",
  "engines": {
    "node": "10.15.0",
    "npm": "6.5.0"
  },
  "private": true,
  "dependencies": {
    "@turf/turf": "^5.1.6",
    "abortcontroller-polyfill": "^1.1.9",
    "apollo-cache-inmemory": "^1.3.11",
    "apollo-client": "^2.4.7",
    "apollo-link-http": "^1.5.7",
    "babel-polyfill": "^6.26.0",
    "classnames": "^2.2.6",
    "cross-fetch": "^2.2.2",
    "flag-icon-css": "^3.2.1",
    "font-awesome": "^4.7.0",
    "graphql": "^14.0.2",
    "graphql-tag": "^2.10.0",
    "inobounce": "^0.1.6",
    "js-cache": "^1.0.3",
    "legoland-ui": "^1.2.3",
    "lodash": "^4.17.10",
    "mapbox-gl": "^0.47.0-beta.1",
    "moment": "^2.22.2",
    "moment-duration-format": "^2.2.2",
    "pure-react-carousel": "^1.13.2",
    "react": "^16.4.1",
    "react-date-picker": "^7.0.0",
    "react-datepicker": "^1.7.0",
    "react-dom": "^16.4.1",
    "react-mapbox-gl": "^3.8.0",
    "react-onclickoutside": "^6.7.1",
    "react-radio-group": "^3.0.3",
    "react-scripts": "1.1.4",
    "react-switch": "^3.0.4",
    "react-transition-group": "^2.4.0",
    "reactjs-popup": "^1.1.1",
    "uuid": "^3.3.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

任何提示将不胜感激。预先感谢!

0 个答案:

没有答案