Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example4 platform directory is empty.. #1

Open
willSonic opened this issue Aug 18, 2015 · 1 comment
Open

Example4 platform directory is empty.. #1

willSonic opened this issue Aug 18, 2015 · 1 comment

Comments

@willSonic
Copy link

Hello,

Following the steps to creating yo based generated ionic app, I noticed that a platform directory is created but has no contents. I developing on a MAC, and when I run grunt serve for example 4, the app does not load. I went back to the sub chapter title "The Platform Guides" and attempted to following the links to cordova platform guides for ios. While these links offer information on creating and using platform plugins, I did not notice a place to download plugins. I then went to ionic site ( http://ionicframework.com/docs/guide/installation.html ) and ran the following command from both example4/platform, $ ionic platform add ios

which returned the error

Error { [Error: ENOENT, no such file or directory '/..../ionic-learning/ionicApps/chapter2/example4/platforms/hooks']

I then when up a directory a ran the same command from example4 directory, and ran the same command again, and this time I got the following error

path.js:439
throw new TypeError('Arguments to path.resolve must be strings');

Here is a list of my globally install npms
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

How should I proceed to enable Example 4 to run correctly on a mac, for both IOS and Android?

Thank YOu!

@willSonic
Copy link
Author

After a bit of searching, I found the following page on the ionic website: http://ionicframework.com/docs/guide/installation.html , which shows how to install platforms.

$ ionic platform add ios
$ ionic platform add android

for yeoman.. generator
https://github.com/diegonetto/generator-ionic

$ grunt platform:add:ios
$ grunt platform:add:android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant