这发生在Win 8.1 PC上,是"ember serve"的结果,在无错误的ember新MyApp之后没有进行任何修改。
根据我的研究:
"错误:EPERM:不允许操作,符号链接"表示存在权限问题
因此,我确保我的Windows 8.1本地安全策略设置为admin,并且我以管理员权限运行cmd窗口。我还在全球范围内重新安装并更新了Ember CLI和NPM。我不知道还能尝试什么。
此外,构建非常缓慢,在速度正常的电脑上超过5分钟。我安装了ember cli windows,但仍然非常缓慢。
编辑评论:对于一个全新的"系统"来说,这似乎是一个相当大的失败。如果是这个bug,甚至没有添加新代码。。。也许我应该在Angular 2.0上投入时间?
D:MyAppEmberMyApp>ember s
version: 2.4.2
The Broccoli Plugin: [Funnel: Funnel: index.html] failed with:
Error: EPERM: operation not permitted, symlink 'D:MyAppEmberMyAppapp' -> 'D:
MyAppEmberMyApptmpfunnel-input_base_path-by5U4Ewi.tmp '
at Error (native)
at Object.fs.symlinkSync (fs.js:945:18)
at symlinkWindows (D:MyAppEmberMyAppnode_modulesember-clinode_modulessymlink-or-copyindex.js:90:16)
at symlinkOrCopySync (D:MyAppEmberMyAppnode_modulesember-clinode_modulessymlink-or-copyindex.js:56:5)
at D:MyAppEmberMyAppnode_modulesember-clinode_modulesbroccoli-pluginread_compat.js:58:9
at lib$rsvp$$internal$$tryCatch (D:MyAppEmberMyAppnode_modulesember-clinode_modulesrsvpdistrsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (D:MyAppEmberMyAppnode_modulesember-clinode_modulesrsvpdistrsvp.js:1048:17)
at lib$rsvp$$internal$$publish (D:MyAppEmberMyAppnode_modulesember-clinode_modulesrsvpdistrsvp.js:1019:11)
at lib$rsvp$asap$$flush (D:MyAppEmberMyAppnode_modulesember-clinode_modulesrsvpdistrsvp.js:1198:9)
at _combinedTickCallback (node.js:376:9)
The broccoli plugin was instantiated at:
at Funnel.Plugin (D:MyAppEmberMyAppnode_modulesember-clinode_modulesbroccoli-pluginindex.js:7:31)
at new Funnel (D:MyAppEmberMyAppnode_modulesember-clinode_modulesbroccoli-funnelindex.js:44:10)
at EmberApp.index (D:MyAppEmberMyAppnode_modulesember-clilibbroccoliember-app.js:595:15)
at EmberApp.toArray (D:MyAppEmberMyAppnode_modulesember-clilibbroccoliember-app.js:1541:10)
at EmberApp.toTree (D:MyAppEmberMyAppnode_modulesember-clilibbroccoliember-app.js:1564:30)
at module.exports (D:MyAppEmberMyAppember-cli-build.js:23:14)
at Class.module.exports.Task.extend.setupBroccoliBuilder (D:MyAppEmberMyAppnode_modulesember-clilibmodelsbuilder.js:55:19)
at Class.module.exports.Task.extend.init (D:MyAppEmberMyAppnode_modulesember-clilibmodelsbuilder.js:89:10)
at new Class (D:MyAppEmberMyAppnode_modulesember-clinode_modulescore-objectcore-object.js:18:12)
at Class.module.exports.Task.extend.run (D:MyAppEmberMyAppnode_modulesember-clilibtasksserve.js:15:19)
尝试在管理员模式下运行命令提示符。它对我有效