Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Installing onsenui globally

  • Why is the Getting Started recommending to install monaca-cli globally npm install -g monaca while asking us to install onsen-ui locally npm install onsenui?

    Would there be any difference or issue if I also install onsenui globally npm install -g onsenui since I need it for multiple projects?

  • Onsen UI

    @wetfeet You don’t need to bundle Monaca in your projects but need it globally available in the shell. Therefore, it is recommended installing Monaca globally.

    However, Onsen UI is only required inside your projects since it has to be bundled. You could have some issues with the path if it’s a global dependency. Also, if you update Onsen UI version for 1 project, it will be updated for all of them, possibly causing incompatibilities if you don’t update your projects.