2016-04-23 73 views
1

在Ubuntu上運行node.js應用程序(在Windows 10上作爲Guest OS運行)時,出現構建錯誤。我如何解決下面的權限錯誤?Broccoli Plugin權限錯誤,nodejs

Build error 

The Broccoli Plugin: [BroccoliMergeTrees] failed with: 

Error: EACCES: permission denied, mkdir '/<PROJECT_FOLDER>/tmp' 
    at Error (native) 
    at Object.fs.mkdirSync (fs.js:842:18) 
    at findBaseDir (/<PROJECT_FOLDER>/node_modules/quick-temp/index.js:62:8) 
    at makeTmpDir (/<PROJECT_FOLDER>/node_modules/quick-temp/index.js:45:41) 
    at Object.makeOrReuse (/<PROJECT_FOLDER>/node_modules/quick-temp/index.js:21:22) 
    at new ReadCompat (/<PROJECT_FOLDER>/node_modules/broccoli-plugin/read_compat.js:17:13) 
    at BroccoliMergeTrees.Plugin._initializeReadCompat (/<PROJECT_FOLDER>/node_modules/broccoli-plugin/index.js:130:22) 
    at BroccoliMergeTrees.Plugin.read (/<PROJECT_FOLDER>/node_modules/broccoli-plugin/index.js:110:12) 
    at /<PROJECT_FOLDER>/node_modules/ember-cli-broccoli/lib/builder.js:107:23 
    at lib$rsvp$$internal$$tryCatch (/<PROJECT_FOLDER>/node_modules/rsvp/dist/rsvp.js:1036:16) 

The broccoli plugin was instantiated at: 
    at BroccoliMergeTrees.Plugin (/<PROJECT_FOLDER>/node_modules/broccoli-plugin/index.js:7:31) 
    at new BroccoliMergeTrees (/<PROJECT_FOLDER>/node_modules/broccoli-merge-trees/index.js:29:10) 
    at BroccoliMergeTrees (/<PROJECT_FOLDER>/node_modules/broccoli-merge-trees/index.js:23:53) 
    at Class.module.exports.postprocessTree (/<PROJECT_FOLDER>/node_modules/broccoli-serviceworker/lib/ember-addon.js:62:14) 
    at /<PROJECT_FOLDER>/node_modules/ember-cli/lib/broccoli/ember-app.js:506:27 
    at Array.forEach (native) 
    at EmberApp.addonPostprocessTree (/<PROJECT_FOLDER>/node_modules/ember-cli/lib/broccoli/ember-app.js:504:23) 
    at EmberApp.toTree (/<PROJECT_FOLDER>/node_modules/ember-cli/lib/broccoli/ember-app.js:1591:15) 
    at module.exports (/<PROJECT_FOLDER>/ember-cli-build.js:36:16) 
    at Class.module.exports.Task.extend.setupBroccoliBuilder (/<PROJECT_FOLDER>/node_modules/ember-cli/lib/models/builder.js:55:19) 
+0

您是否嘗試過更改所有者'sudo chown :admin <您的項目的路徑>? – nem035

+0

我剛剛嘗試過,但它會引發錯誤:'chown:invalid group:'username:admin'' – Dut

+0

然後嘗試沒有該組。 [這裏有一些很好的建議](http://askubuntu.com/questions/6723/change-folder-permissions-and-ownership) – nem035

回答