android - Ionic: Adding platform gives error -


having first ionic encounter, setting environment android app on osx yosemite. running command sudo ionic platform android getting following error:

error: %s error: enoent, no such file or directory '/users/myuser/hooks'     @ error (native)     @ object.fs.readdirsync (fs.js:761:18)     @ object.sethookspermission (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/hooks.js:116:24)     @ object.ionictask.run (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:51:13)     @ object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:95:32)     @ object.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)     @ module._compile (module.js:460:26)     @ object.module._extensions..js (module.js:478:10)     @ module.load (module.js:355:32)     @ function.module._load (module.js:310:12) updated hooks directory have execute permissions error happened { [error: enoent, open '/users/myuser/config.xml'] errno: -2, code: 'enoent', path: '/users/myuser/config.xml' } error: enoent, open '/users/myuser/config.xml'     @ error (native) 

versions after running upgrade:

├── cordova@5.4.1  └── ionic@1.7.12  

it should this,

$ ionic platform add android 

also, you'd better not run command sudo or might face troubles permission time later.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -