error find-up@4.1.0: 引擎 "node" 与该模块不兼容。预期版本“>=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
- 节点:- 6.9.5
- 纱线:- 1.9.4
在 Heroku 上部署我的 ember 项目期间,我在日志中收到此错误。
我们有 find-up 版本 3.0.0 但在部署期间,它仍在尝试下载 find-up@4.1.0 如果有人对此有想法忽略最新版本的 find-up 或任何解决方案的下载所以评论它在此提前致谢。
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
这是我的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"
}
}
Yarn 告诉您 npm 包 find-up
期望 Node 版本大于或等于 8。根据您的问题,您使用的是 Node 6。
节点 6 的生命周期于 2019 年 4 月 30 日结束。自去年年底以来甚至不再支持节点 8。
您应该升级到受支持的 Node 版本以解决该问题。节点 10 和 12 是活跃的 LTS 版本。 Node 13 是当前的最新版本。您可以在 https://github.com/nodejs/Release.
找到 Node 版本及其支持的概述
if anyone have an idea about this to ignore download of the latest version of find-up
我在你的 package.json
中没有找到任何结果。它是其他依赖项的依赖项吗?
无论如何,我建议锁定 package.json
中的所有依赖版本以避免任何意外(这些意外通常代价高昂)。为此,您需要删除所有 ^
和 ~
。例如,"highcharts": "7.0.0",
而不是 "highcharts": "^7.0.0",
。之后您需要 运行 yarn install 来安装正确版本的依赖项并更新 yarn.lock
文件。
此外,yarn install --ignore-engines
应该忽略节点版本检查,如果以前的解决方案没有帮助。
这是 "replace": "^1.1.1" 在 package.json 依赖项下的问题所以我只是通过添加这个 "replace": "1.1.1" 来锁定替换版本对我有用,谢谢你的回答。
请将您的节点版本升级到最新稳定版本的节点 js,这对我有用。
- Ember-CLI:- 3.4.3
- 节点:- 6.9.5
- 纱线:- 1.9.4
在 Heroku 上部署我的 ember 项目期间,我在日志中收到此错误。 我们有 find-up 版本 3.0.0 但在部署期间,它仍在尝试下载 find-up@4.1.0 如果有人对此有想法忽略最新版本的 find-up 或任何解决方案的下载所以评论它在此提前致谢。
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
这是我的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"
}
}
Yarn 告诉您 npm 包 find-up
期望 Node 版本大于或等于 8。根据您的问题,您使用的是 Node 6。
节点 6 的生命周期于 2019 年 4 月 30 日结束。自去年年底以来甚至不再支持节点 8。
您应该升级到受支持的 Node 版本以解决该问题。节点 10 和 12 是活跃的 LTS 版本。 Node 13 是当前的最新版本。您可以在 https://github.com/nodejs/Release.
找到 Node 版本及其支持的概述if anyone have an idea about this to ignore download of the latest version of find-up
我在你的 package.json
中没有找到任何结果。它是其他依赖项的依赖项吗?
无论如何,我建议锁定 package.json
中的所有依赖版本以避免任何意外(这些意外通常代价高昂)。为此,您需要删除所有 ^
和 ~
。例如,"highcharts": "7.0.0",
而不是 "highcharts": "^7.0.0",
。之后您需要 运行 yarn install 来安装正确版本的依赖项并更新 yarn.lock
文件。
此外,yarn install --ignore-engines
应该忽略节点版本检查,如果以前的解决方案没有帮助。
这是 "replace": "^1.1.1" 在 package.json 依赖项下的问题所以我只是通过添加这个 "replace": "1.1.1" 来锁定替换版本对我有用,谢谢你的回答。
请将您的节点版本升级到最新稳定版本的节点 js,这对我有用。