2016-04-23 8 views
1

Ubuntuでnode.jsアプリケーションを実行しようとしたときにビルドエラーが発生しました(Windows 10でゲストOSとして実行)。どのように私は以下の許可エラーを解決するのですか?Broccoliプラグインのアクセス許可エラー、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:無効なグループ: 'username:admin'' – Dut

+0

グループなしでそれを試してください。 [ここにはいくつかの良い提案があります](http://askubuntu.com/questions/6723/change-folder-permissions-and-ownership) – nem035

答えて

1

間違った権限でnode.js/npmをインストールしたようです。ガイダンスについてはFixing npm permissions公式ガイドをチェックしてください。

関連する問題