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

huangapple go评论82阅读模式
英文:

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
Node版本:6.9.5
Yarn版本:1.9.4

在Heroku上部署我的Ember项目期间,我遇到了以下错误,这是日志:
我们找到了find-up的版本3.0.0,但在部署过程中,它仍然试图下载find-up@4.1.0。如果有人有关于如何忽略下载find-up的最新版本或任何解决方案的想法,请在这里评论,这将非常有帮助,提前感谢。

错误:find-up@4.1.0:引擎“node”与此模块不兼容。期望版本“>=8”。
错误:找到不兼容的模块
信息:请访问https://yarnpkg.com/en/docs/cli/add以获取有关此命令的文档。
! 推送被拒绝,Ember CLI应用程序编译失败。
! 推送失败

这是我的Package.json:

{
  "name": "tabsys-client",
  "version": "2.13.1",
  "private": true,
  "description": "Activate Universal的Web和移动客户端",
  "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": "

<details>
<summary>英文:</summary>

 - Ember-CLI:- 3.4.3 
 - Node:- 6.9.5 
 - Yarn:- 1.9.4

During the deployment of my ember project on Heroku, I got this error here is log. 
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.

    error find-up@4.1.0: The engine &quot;node&quot; is incompatible with this module. Expected version &quot;&gt;=8&quot;.
    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**

 

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


</details>


# 答案1
**得分**: 6

I don't see find-up in your `package.json`. Is it a dependency of some other dependency? 

Anyway, I suggest locking all dependency versions in `package.json` to avoid surprises (which can be costly). To do this, remove all `^` and `~` symbols. For example, use `"highcharts": "7.0.0"` instead of `"highcharts": "^7.0.0"`. Afterward, run `yarn install` to install the correct dependency versions and update the `yarn.lock` file.

Also, consider using `yarn install --ignore-engines` if the previous solution doesn't work for node version checks.

<details>
<summary>英文:</summary>

&gt; if anyone have an idea about this to ignore download of the latest version of find-up

I don&#39;t see find-up in your `package.json`. 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). To do this, you need to remove all `^` and `~`. For example, `&quot;highcharts&quot;: &quot;7.0.0&quot;,` instead of `&quot;highcharts&quot;: &quot;^7.0.0&quot;,`. You need to run yarn install after that to install correct versions of dependencies and update `yarn.lock` file.

Also, `yarn install --ignore-engines` should ignore node version checks, if previous solution does not help.

</details>



# 答案2
**得分**: 1

这是关于“replace”问题的部分:“^1.1.1” 在 package.json 的 dependencies 下,所以我只需通过添加这个 "replace": "1.1.1" 来锁定 replace 的版本,这对我有效,感谢您的答案。

<details>
<summary>英文:</summary>

It was the issue of &quot;replace&quot;: &quot;^1.1.1&quot; under dependencies in package.json so I just lock replace version by adding this &quot;replace&quot;: &quot;1.1.1&quot; and it works for me thanks for your answers.

</details>



# 答案3
**得分**: 0

Yarn 告诉您,npm  `find-up` 需要的 Node 版本应该大于或等于 8。根据您的问题,您正在使用 Node 6

Node 6 的生命周期于 2019  4  30 日结束。即使 Node 8 自去年底也不再受支持。

为解决此问题,您应升级到受支持的 Node 版本。Node 10  12 是活跃的 LTS 版本。Node 13 是当前的最新发布版。您可以在 https://github.com/nodejs/Release 找到有关 Node 版本及其支持的概述。

<details>
<summary>英文:</summary>

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.

End of life for node 6 was on 30 April 2019. Even Node 8 not supported anymore since end of last year.

You should upgrade to a supported version of Node to resolve that issue. Node 10 and 12 are active LTS versions. Node 13 is the current latest release. You could find an overview of Node versions and their support at https://github.com/nodejs/Release.

</details>



# 答案4
**得分**: 0

请将您的节点版本升级到Node.js的最新稳定版本,这对我有效。

<details>
<summary>英文:</summary>

please upgrade your node version to last stable version of nodejs, this worked for me.

</details>



# 答案5
**得分**: 0

请确保您的系统上安装了更高版本的node.js。

在这种情况下,系统中应安装node.js v8或更高版本。

<details>
<summary>英文:</summary>

Ensure you have a higher version of node.js installed on your system.

In this case, node.js v8 or above should be installed in the system.

</details>



huangapple
  • 本文由 发表于 2020年1月6日 21:30:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/59613016.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定