2017-12-16 14 views
0

일주일이 지나면 문제에 직면하고 있기 때문에 글을 쓰고 있습니다. 문제를 해결하는 데 어려움이 있습니다. 도움이되기를 바랍니다. 덕분에 조언.EACCES 산란 오류 이오니아 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). 

내가 이런 명령을 실행하려고 : 나는 안드로이드/iOS의 응용 프로그램을 실행하려고 할 때 또는 단순히 그것을 빌드 할 때 난 항상이 오류가

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

두 디렉터리 모두에서 아무 일도 발생하지 않았습니다.

이, 어쩌면 내가 놓친 거지 이온이 바보 같은 ... 귀하의 소중한 시간에 대한 조언에

감사를 사용하여 내 첫 번째 프로젝트이다.

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

내가 해결책을 발견 : CLI를 업데이트하려고

편집

나는이 있어요.

은 내가 실수를

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

하기 전에 다음 명령을 수행하려고 나는 Gradle을의 버전을 변경하고 나서 일했다. 나는 사용했다

sudo chmod 777 

755 대신에, 그러나 결과는 동일했다. 도와 주신 Sébastien에게 감사드립니다.