我愚蠢地尝试使用ember install ember-cli-rename
安装ember-cli-rename
。我收到一条成功消息:
Yarn: Installed ember-cli-rename
Installed addon package.
但是现在余烬不可用了。我给它的任何命令都会返回
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/commands/rename.js:5:25)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/tasks/generate-file-list.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/tasks/process-move-files.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/commands/move.js:5:22)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/verify-file.js:8:29)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/move-file.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/update-paths.js:8:20)
Cannot find module 'ember-cli/lib/utilities/string'
Stack Trace and Error Report:
/var/folders/pm/4g51l697zhtl2vj7/T/error.dump.da9acb8bm3zgrpw9sd3.log
如何解决此问题?
答案 0 :(得分:0)
您也可以删除该行
"ember-cli-rename": "0.0.4",
然后再次运行yarn。那对我有用。