gpt4 book ai didi

ember.js - Ember cli -TypeError : undefined is not a function after running ember server

转载 作者:行者123 更新时间:2023-12-05 00:23:02 24 4
gpt4 key购买 nike

我像这样使用 ember-cli 创建了一个新的 ember 应用程序

ember new myapp
cd myapp
ember server.

我收到以下神秘错误。
 ember server
version: 0.2.0-beta.1
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
undefined is not a function
TypeError: undefined is not a function
at rimraf (/vagrant/fadis-web/node_modules/ember-cli/node_modules/broccoli-caching-writer/node_modules/rimraf/rimraf.js:57:13)
at lib$rsvp$node$$tryApply (/vagrant/fadis-web/node_modules/ember-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1467:11)
at lib$rsvp$node$$handleValueInput (/vagrant/fadis-web/node_modules/ember-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1567:20)
at fn (/vagrant/fadis-web/node_modules/ember-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1555:18)
at /vagrant/fadis-web/node_modules/ember-cli/node_modules/broccoli-caching-writer/index.js:100:14
at lib$rsvp$$internal$$tryCatch (/vagrant/fadis-web/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:489:16)
at lib$rsvp$$internal$$invokeCallback (/vagrant/fadis-web/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:501:17)
at lib$rsvp$$internal$$publish (/vagrant/fadis-web/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:472:11)
at lib$rsvp$asap$$flush (/vagrant/fadis-web/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1290:9)
at process._tickCallback (node.js:355:11)

我对 ember 完全陌生,所以我不知道发生了什么。有什么建议。

最佳答案

我通过安装包 "rimraf":"2.2.8" 解决了这个问题.

与这篇帖子有关:https://github.com/ember-cli/ember-cli/issues/3413

关于ember.js - Ember cli -TypeError : undefined is not a function after running ember server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29005261/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com