Ember js'ember build'错误 - 错误:EBUSY:资源忙或已锁定,符号链接

时间:2018-01-15 13:18:18

标签: ember.js npm

我有一个安静的旧的ember.js项目,我想编辑/ mod。运行'ember build'或'ember serve'时,我会收到以下错误。我读了与此类似的其他问题,但到目前为止,没有任何建议对我有所帮助。任何人都可以帮忙解决这个问题吗?

来自ember版本的输出--verbose&& npm --version: ember-cli:2.5.1 http_parser:2.7.0 节点:5.12.0 v8:4.6.85.32 紫外线:1.8.0 zlib:1.2.8 ares:1.10.1-DEV icu:​​56.1 模块:47 openssl:1.0.2h os:win32 x64

Build failed.
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (ember-data - addon)] fa
iled with:
Error: EBUSY: resource busy or locked, symlink 'C:\myprojectfolder\tmp\broccoli_merge_trees-output_path-z7GLec0z.tmp' -> 
'C:\myprojectfolder\tmp\broccoli_merge_trees-input_base_path-dgyw33ia.tmp\4'
    at Error (native)
    at Object.fs.symlinkSync (fs.js:945:18)
    at symlinkWindows (C:\myprojectfolder\node_modules\symlink-or-copy\index.js:123:18)
    at symlinkOrCopySync (C:\myprojectfolder\node_modules\symlink-or-copy\index.js:63:5)
    at C:\myprojectfolder\node_modules\broccoli-plugin\read_compat.js:86:11
    at tryCatch (C:\myprojectfolder\node_modules\rsvp\dist\rsvp.js:525:12)
    at invokeCallback (C:\myprojectfolder\node_modules\rsvp\dist\rsvp.js:538:13)
    at publish (C:\myprojectfolder\node_modules\rsvp\dist\rsvp.js:508:7)
    at flush (C:\myprojectfolder\node_modules\rsvp\dist\rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)

The broccoli plugin was instantiated at:
    at BroccoliMergeTrees.Plugin (C:\myprojectfolder\node_modules\broccoli-plugin\index.js:7:31)
    at new BroccoliMergeTrees (C:\myprojectfolder\node_modules\broccoli-merge-trees\index.js:42:10)
    at BroccoliMergeTrees (C:\myprojectfolder\node_modules\broccoli-merge-trees\index.js:36:53)
    at mergeTrees (C:\myprojectfolder\node_modules\ember-cli\lib\models\addon.js:35:14)
    at Class.treeFor (C:\myprojectfolder\node_modules\ember-cli\lib\models\addon.js:300:10)
    at C:\myprojectfolder\node_modules\ember-cli\lib\broccoli\ember-app.js:463:20
    at Array.map (native)
    at EmberApp.addonTreesFor (C:\myprojectfolder\node_modules\ember-cli\lib\broccoli\ember-app.js:461:30)
    at EmberApp._addonTree (C:\myprojectfolder\node_modules\ember-cli\lib\broccoli\ember-app.js:871:36)
    at EmberApp._processedVendorTree (C:\myprojectfolder\node_modules\ember-cli\lib\broccoli\ember-app.js:916:20)

更新 通过阅读Martin关联的其他堆栈帖子来管理问题,人们建议使用npm clear cache,但对我来说真正解决问题的是从我的windows用户临时目录中删除字段/文件夹。

0 个答案:

没有答案