我的package.json
和index.js
中有两个不同的名字,我不能在这两个地方更改。我得到了这个错误。
ember-cli: Your names in package.json and index.js should match. The addon in /Users/nrehman/Projects/copilot-seo-score currently have '@copilot/copilot-seo-score' in package.json and 'copilot-seo-score' in index.js. Until ember-cli v3.9, this error can be disabled by setting env variable EMBER_CLI_IGNORE_ADDON_NAME_MISMATCH to "true". For more information about this workaround, see: https://github.com/ember-cli/ember-cli/pull/7950.
我的余烬-cli版本是"ember-cli": "~3.28.3"
发布于 2021-10-28 16:55:57
我通常在我的加载项中这样做:
module.exports = {
name: require('./package').name,
}
这样,他们总是匹配,即使重命名。
问题是您的package.json名称是@copilot/copilot-seo-score
,但是您在index.js中的名称是copilot-seo-score
,它们需要匹配。
https://stackoverflow.com/questions/69749585
复制相似问题