在构建期间查找Ember-CLI / Broccoli插件错误的原因的后续步骤

时间:2016-03-25 19:39:38

标签: node.js ember-cli broccolijs

这种情况发生在Win 8.1 PC上,由于“余烬服务”,没有任何修改,在没有错误的情况下,使用新的MyApp。

从我的研究中:

“错误:EPERM:不允许操作,符号链接”表示存在权限问题。
所以我确保我的Windows 8.1本地安全策略设置为admin,并且我正在运行具有管理员权限的cmd窗口。我还在全球范围内重新安装并更新了Ember-CLI和NPM。我不知道还有什么可以尝试的。

此外,在正常快速的PC上,构建速度非常慢,超过5分钟。我安装了ember-cli-windows,它仍然很慢。

编辑评论:对于一个开箱即用的“系统”来说,这似乎是一个相当大的失败。如果没有添加新代码就是这个错误...也许我应该花时间使用Angular 2.0?

D:\MyAppEmber\MyApp>ember s
version: 2.4.2
The Broccoli Plugin: [Funnel: Funnel: index.html] failed with:
Error: EPERM: operation not permitted, symlink 'D:\MyAppEmber\MyApp\app' -> 'D:\
MyAppEmber\MyApp\tmp\funnel-input_base_path-by5U4Ewi.tmp\0'
    at Error (native)
    at Object.fs.symlinkSync (fs.js:945:18)
    at symlinkWindows (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\symlink-or-copy\index.js:90:16)
    at symlinkOrCopySync (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\symlink-or-copy\index.js:56:5)
    at D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\broccoli-plugin\read_compat.js:58:9
    at lib$rsvp$$internal$$tryCatch (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
    at lib$rsvp$$internal$$publish (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
    at lib$rsvp$asap$$flush (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1198:9)
    at _combinedTickCallback (node.js:376:9)

The broccoli plugin was instantiated at:
    at Funnel.Plugin (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\broccoli-plugin\index.js:7:31)
    at new Funnel (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\broccoli-funnel\index.js:44:10)
    at EmberApp.index (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\broccoli\ember-app.js:595:15)
    at EmberApp.toArray (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\broccoli\ember-app.js:1541:10)
    at EmberApp.toTree (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\broccoli\ember-app.js:1564:30)
    at module.exports (D:\MyAppEmber\MyApp\ember-cli-build.js:23:14)
    at Class.module.exports.Task.extend.setupBroccoliBuilder (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\models\builder.js:55:19)
    at Class.module.exports.Task.extend.init (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\models\builder.js:89:10)
    at new Class (D:\MyAppEmber\MyApp\node_modules\ember-cli\node_modules\core-object\core-object.js:18:12)
    at Class.module.exports.Task.extend.run (D:\MyAppEmber\MyApp\node_modules\ember-cli\lib\tasks\serve.js:15:19)

1 个答案:

答案 0 :(得分:2)

尝试在管理员模式下运行命令提示符。它对我有用