简体   繁体   English

错误 find-up@4.1.0:引擎“节点”与此模块不兼容。 预期版本“>=8”。 Ember js + Heroku 部署

[英]error find-up@4.1.0: The engine "node" is incompatible with this module. Expected version ">=8". Ember js + Heroku Deployment

  • Ember-CLI:- 3.4.3 Ember-CLI:- 3.4.3
  • Node:- 6.9.5节点:- 6.9.5
  • Yarn:- 1.9.4纱线:- 1.9.4

During the deployment of my ember project on Heroku, I got this error here is log.在 Heroku 上部署我的 ember 项目期间,我在日志中收到此错误。 We have find-up version 3.0.0 but during deployment, it is still trying to download find-up@4.1.0 if anyone have an idea about this to ignore download of the latest version of find-up or any solution so comment it here it will be very helpful thanks in advance.我们有 find-up 3.0.0 版本,但在部署过程中,如果有人对此有想法忽略下载最新版本的 find-up 或任何解决方案,它仍在尝试下载 find-up@4.1.0,因此请发表评论在这里这将非常有帮助,请提前致谢。

error find-up@4.1.0: The engine "node" is incompatible with this module. Expected version ">=8".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
 !     Push rejected, failed to compile Ember CLI app.
 !     Push failed

Here is my Package.json这是我的 Package.json

   {
  "name": "tabsys-client",
  "version": "2.13.1",
  "private": true,
  "description": "Web and mobile client for Activate Universal",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "lint:js": "eslint ./*.js app config lib server tests",
    "start": "ember serve",
    "test": "ember test",
    "postinstall": "node -e \"try { require('fs').symlinkSync(require('path').resolve('node_modules/@bower_components'), 'bower_components', 'junction') } catch (e) { }\""
  },
  "dependencies": {
    "@bower_components/FakeXMLHttpRequest": "trek/FakeXMLHttpRequest#^1.4.0",
    "@bower_components/Faker": "Marak/Faker.js#~3.1.0",
    "@bower_components/d3": "mbostock-bower/d3-bower#^4.11.0",
    "@bower_components/d3-tip": "Caged/d3-tip#^0.7.1",
    "@bower_components/dexie": "dfahlander/dexie.js#^2.0.0-beta.11",
    "@bower_components/dialog-polyfill": "GoogleChrome/dialog-polyfill#^0.4.7",
    "@bower_components/ember-qunit-notifications": "dockyard/ember-qunit-notifications#0.1.0",
    "@bower_components/highcharts-custom-events": "blacklabel/custom_events#2.1.4",
    "@bower_components/leaflet": "Leaflet/Leaflet#^1.0.0",
    "@bower_components/material-design-lite": "google/material-design-lite#^1.2.1",
    "@bower_components/pretender": "trek/pretender#~1.1.0",
    "@bower_components/qunit-notifications": "dockyard/qunit-notifications#~0.1.0",
    "@bower_components/route-recognizer": "tildeio/route-recognizer#~0.1.1",
    "@bower_components/sauce-material-design": "sauce-consultants/sauce-material-design#1.0.0rc8",
    "ember-cli": "^3.4.3",
    "object.values": "^1.0.4",
    "replace": "^1.1.1"
  },
  "devDependencies": {
    "broccoli-asset-rev": "^2.4.5",
    "broccoli-funnel": "2.0.1",
    "corber": "1.3.10",
    "ember-ajax": "^3.0.0",
    "ember-cli-app-version": "^3.0.0",
    "ember-cli-babel": "^7.1.2",
    "ember-cli-clock": "2.1.1",
    "ember-cli-dotenv": "^2.0.0",
    "ember-cli-eslint": "^4.2.1",
    "ember-cli-fastclick": "1.3.0",
    "ember-cli-favicon": "1.0.0-beta.4",
    "ember-cli-geo": "^4.0.0",
    "ember-cli-htmlbars": "^2.0.3",
    "ember-cli-htmlbars-inline-precompile": "^1.0.2",
    "ember-cli-inject-live-reload": "^1.8.2",
    "ember-cli-moment-shim": "3.3.1",
    "ember-cli-nouislider": "^0.14.1",
    "ember-cli-qunit": "^4.1.1",
    "ember-cli-release": "^1.0.0-beta.2",
    "ember-cli-sass": "7.1.3",
    "ember-cli-shims": "^1.2.0",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-uglify": "^2.0.0",
    "ember-composability": "0.3.7",
    "ember-concurrency": "0.7.17",
    "ember-cordova-events": "0.1.0",
    "ember-cordova-platform": "^0.1.0",
    "ember-cordova-splash": "0.1.4",
    "ember-crumbly": "2.0.0-alpha.1",
    "ember-data": "~2.18.0",
    "ember-data-url-templates": "0.2.0",
    "ember-drag-drop": "^0.6.2",
    "ember-export-application-global": "^2.0.0",
    "ember-file-upload": "2.0.0-beta.24",
    "ember-highcharts": "0.5.4",
    "ember-i18n": "5.0.2",
    "ember-inflector": "2.0.1",
    "ember-leaflet": "3.0.9",
    "ember-load-initializers": "^1.0.0",
    "ember-local-storage": "^1.4.0",
    "ember-lodash": "^4.17.5",
    "ember-material-lite": "0.2.5",
    "ember-md5": "^1.2.0",
    "ember-modal-dialog": "^2.4.1",
    "ember-moment": "7.0.0-beta.3",
    "ember-new-computed": "1.0.3",
    "ember-pikaday": "2.2.2",
    "ember-power-select": "1.9.6",
    "ember-radio-button": "1.0.7",
    "ember-resolver": "^4.0.0",
    "ember-route-action-helper": "2.0.6",
    "ember-sauce-material-design": "sauce-consultants/ember-sauce-material-design.git#1.0.0rc18",
    "ember-sauce-toolkit": "sauce-consultants/ember-sauce-toolkit#0.1.5",
    "ember-select-box": "1.1.14",
    "ember-service-worker": "0.6.6",
    "ember-service-worker-asset-cache": "0.6.1",
    "ember-service-worker-index": "0.6.1",
    "ember-sortable": "1.9.3",
    "ember-source": "~2.18.0",
    "ember-tether": "^1.0.0-beta.0",
    "ember-truth-helpers": "2.0.0",
    "ember-web-app": "^2.0.0",
    "ember-welcome-page": "^3.0.0",
    "emberx-file-input": "^1.1.2",
    "eslint-plugin-ember": "^5.0.0",
    "highcharts": "^7.0.0",
    "liquid-fire": "0.27.3",
    "loader.js": "^4.5.0",
    "pikaday": "1.6.1",
    "smd-colors": "sauce-consultants/smd-colors.git#25e787d8a85af98c60ec3482e0534ea8aaab1208",
    "torii": "0.9.3"
  },
  "engines": {
    "node": "6.9.5",
    "yarn": "1.9.4"
  }
}

if anyone have an idea about this to ignore download of the latest version of find-up如果有人对此有想法可以忽略下载最新版本的查找

I don't see find-up in your package.json .我在你的package.json没有看到 find-up 。 Is it dependency of some other dependency?它是其他依赖项的依赖项吗?

Anyway, I suggest to lock all dependency versions in package.json in order to avoid any surprises (these surprises usually are costly).无论如何,我建议在package.json中锁定所有依赖版本以避免任何意外(这些意外通常是昂贵的)。 To do this, you need to remove all ^ and ~ .为此,您需要删除所有^~ For example, "highcharts": "7.0.0", instead of "highcharts": "^7.0.0", .例如, "highcharts": "7.0.0",而不是"highcharts": "^7.0.0", . You need to run yarn install after that to install correct versions of dependencies and update yarn.lock file.您需要在此之后运行 yarn install 以安装正确版本的依赖项并更新yarn.lock文件。

Also, yarn install --ignore-engines should ignore node version checks, if previous solution does not help.此外,如果以前的解决方案没有帮助, yarn install --ignore-engines应该忽略节点版本检查。

这是 package.json 中依赖项下的 "replace": "^1.1.1" 的问题,所以我只是通过添加这个 "replace": "1.1.1" 来锁定替换版本,它对我有用,谢谢你的回答。

Yarn tells you that the npm package find-up is expecting a Node version greater or equal 8. Accordingly to your question you are using Node 6. Yarn 告诉您 npm 包find-up大于或等于 8 的 Node 版本。根据您的问题,您使用的是 Node 6。

End of life for node 6 was on 30 April 2019. Even Node 8 not supported anymore since end of last year.节点 6 的生命周期已于 2019 年 4 月 30 日结束。自去年年底以来,甚至不再支持节点 8。

You should upgrade to a supported version of Node to resolve that issue.您应该升级到受支持的 Node 版本以解决该问题。 Node 10 and 12 are active LTS versions.节点 10 和 12 是活动的 LTS 版本。 Node 13 is the current latest release. Node 13 是当前的最新版本。 You could find an overview of Node versions and their support at https://github.com/nodejs/Release .您可以在https://github.com/nodejs/Release 上找到 Node 版本及其支持的概述。

请将您的节点版本升级到 nodejs 的最新稳定版本,这对我有用。

Ensure you have a higher version of node.js installed on your system.确保您的系统上安装了更高版本的 node.js。

In this case, node.js v8 or above should be installed in the system.在这种情况下,应该在系统中安装 node.js v8 或更高版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (在Rails上反应)引擎“节点”与此模块不兼容。 预期版本“…” - (React on Rails) The engine “node” is incompatible with this module. Expected version “…” 引擎“节点”与此模块不兼容。 预期版本“7.5.0”。 得到“15.13.0” - The engine "node" is incompatible with this module. Expected version "7.5.0". Got "15.13.0" create-react-app&gt;错误css-loader@1.0.0:引擎“节点”与此模块不兼容。 预期版本“&gt; = 6.9.0 &lt;7.0.0 || &gt; = 8.9.0” - create-react-app > error css-loader@1.0.0: The engine “node” is incompatible with this module. Expected version “>= 6.9.0 <7.0.0 || >= 8.9.0” google cloud build - functions@:引擎“节点”与此模块不兼容。 预期版本“10” - google cloud build - functions@: The engine "node" is incompatible with this module. Expected version "10" 引擎“节点”与此模块不兼容。 预期版本“12.x”。 得到“14.8.0” - The engine "node" is incompatible with this module. Expected version "12.x". Got "14.8.0" 引擎“节点”与该模块不兼容。 预期版本“XXX”。 得到了“XXX” - The engine "node" is incompatible with this module. Expected version "X.X.X". Got "X.X.X" 引擎“节点”与此模块不兼容。 预期版本“&gt; 0.4.x &lt; 0.9.0”。 有“12.22.1”吗? 如何解决这个问题 - The engine “node” is incompatible with this module. Expected version “> 0.4.x < 0.9.0”. Got “12.22.1” ? How to solve this npx create-react-app -&gt; 引擎“节点”与此模块不兼容。 预期版本 "&gt;= 10.x"。 得到“8.16.0”-Arch Linux - npx create-react-app -> The engine "node" is incompatible with this module. Expected version ">= 10.x". Got "8.16.0" - Arch Linux 错误 eslint@5.6.0:引擎“节点”与此模块不兼容。 尝试创建反应应用程序时 - error eslint@5.6.0: The engine "node" is incompatible with this module. when trying to create-react-app CRA:引擎“节点”与该模块不兼容。 即使我有最新的节点 - CRA: The engine "node" is incompatible with this module. Even though I have latest node
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM