Skip to content

Example4 platform directory is empty.. #1

@willSonic

Description

@willSonic

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
├── babel@5.4.2
├── bower@1.4.1
├── cordova@5.2.0
├── generator-ionic@0.7.3
├── grunt@0.4.5
├── grunt-cli@0.1.13
├── gulp@3.8.11
├── http-server@0.7.5
├── ionic@1.6.4
├── jspm@0.15.6
├── n@1.3.0
├── node-gyp@1.0.3
├── npm@2.13.5
├── pm2@0.14.5
├── redis-commander@0.3.2
├── sails@0.11.0
├── slush@1.1.1
├── slush-angular@0.4.5
├── webpack@1.7.3
├── webpack-dev-server@1.8.0
└── yo@1.4.7

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

Thank YOu!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions