2017-12-16 13 views
0

私は1週間以来問題に直面しているので、私はそれを修正することに問題があります。私はいくつかの助けを受けることを望む。アドバイスをありがとう。EACCES Spawn Error Ionic 2

これは状況です。 MacでIonic 2 Frameworkを使用してアプリケーションを開発しています。

sudo chmod -777 /Users/manu/Library/Android/sdk 

または

ANDROID_HOME=/Users/manu/Library/Android/sdk 
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home 
Error: spawn EACCES 

[ERROR] An error occurred while running cordova run android (exit code 1). 

が、私はこれらのようなコマンドを実行しようとした:私は、Android/iOSのアプリを実行しようとするか、私は単にそれを構築しようとしたとき、私はいつもこのエラーが出ます

sudo chmod -775 /Users/manu/Library/Android/sdk 

両方のディレクトリにありますが、何も起こりません。

これは...あなたの貴重な時間のためのアドバイスで

おかげ多分私は愚かな何かをしないのですイオン2を使用して、私の最初のプロジェクトです。 CLIを更新しようとしてい

EDIT

私はこれだ:私は解決策を見つけた

node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (falling back to source compile with node-gyp) 
gyp ERR! clean error 
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' 
gyp ERR! System Darwin 17.2.0 
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "clean" 
gyp ERR! cwd /usr/local/lib/node_modules/ionic/node_modules/fsevents 
gyp ERR! node -v v9.2.0 
gyp ERR! node-gyp -v v3.6.2 
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js clean' (1) 
node-pre-gyp ERR! stack  at ChildProcess.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 
node-pre-gyp ERR! stack  at ChildProcess.emit (events.js:159:13) 
node-pre-gyp ERR! stack  at maybeClose (internal/child_process.js:943:16) 
node-pre-gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) 
node-pre-gyp ERR! System Darwin 17.2.0 
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/ionic/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build" 
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/ionic/node_modules/fsevents 
node-pre-gyp ERR! node -v v9.2.0 
node-pre-gyp ERR! node-pre-gyp -v v0.6.39 
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js clean' (1) 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ionic/node_modules/fsevents): 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install` 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 

+ [email protected] 
added 124 packages, removed 1 package and updated 11 packages in 20.936s 
iMac-di-Manuel:/ manu$ 
+0

私はその投稿を見ましたが、その解決策は私のためには機能しませんでした。 –

+0

実際のインストールに合わせてパスを調整しましたか? –

+0

どういう意味ですか? –

答えて

0

を。

は私がミスを犯した

sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-2.2.1/bin/gradle 

前に、次のコマンドを実行しようとしました、私はGradleののバージョンを変更して、それが働きました。私は

sudo chmod 777 

の代わりに755を使用しましたが、結果は同じでした。セバスチャンに助けてくれてありがとう。

関連する問題