我只是尝试从头开始创建新应用程序,但遇到以下错误:
Command failed with exit code 1: npm install --loglevel error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ember-sample@0.0.0
npm ERR! Found: ember-cli@4.3.0
npm ERR! node_modules/ember-cli
npm ERR! dev ember-cli@"~4.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer ember-cli@"~3.2.0" from ember-cli-dependency-checker@3.3.0
npm ERR! node_modules/ember-cli-dependency-checker
npm ERR! dev ember-cli-dependency-checker@"^3.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
以下是复制步骤:
在Win11.install ember中打开命令提示符
npm install -g ember-cli
创建应用程序成员示例
ember new ember-sample
就在那之后,我得到了上面的错误。
我会错过什么吗?我已经安装了node v16.14.2,npm 8.5.0,ember cli:4.3.0我已经在查看ember了。js official website
2条答案
按热度按时间vql8enpb1#
实际上,Ember CLI与NodeVersion 12兼容。您可能正在使用更高版本的节点,如14或16。当我降级到node 12 lts时,我的问题就解决了
fxnxkyjh2#
修复正在进行中。你可以关注@NullVoxPopuli在评论中说的话。
https://github.com/quaertym/ember-cli-dependency-checker/issues/132