Broccoli插件权限错误,nodejs

时间:2016-04-23 16:53:36

标签: ember.js ubuntu-14.04 virtualbox ember-cli

尝试在Ubuntu上运行node.js应用程序时遇到构建错误(在Windows 10上作为Guest OS运行)。如何解决下面的权限错误?

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)

1 个答案:

答案 0 :(得分:1)

听起来你安装了具有错误权限的node.js / npm。您应该查看documentation官方指南以获取指导。