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.


Log in to reply