Reputation: 1829
I have developed one mobile app using cordova and ionic framework. I want to test that app in my mobile but when i tried the following command
$ ionic run android
it showed me following error:
$ ionic run android
Error { [Error: ENOENT, no such file or directory 'C:\Users\work\hooks']
errno: -4058,
code: 'ENOENT',
path: 'C:\\Users\\work\\hooks',
syscall: 'scandir' }
Updated the hooks directory to have execute permissions
Current working directory is not a Cordova-based project.
How to resolve that one? link of the documentation is Here
Upvotes: 0
Views: 884
Reputation: 5064
Current working directory is not a Cordova-based project,.
Project structure is like that
project <==== from here you shall start command
-> hooks
-> www
-> ..
as from your logs, maybe your project is here path: 'C:\Users\work\
Upvotes: 1