2016-04-23 75 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

回答