chirag The text you quoted is old, dating back to before Flarum started using Composer. I adjusted it after the first time it caused problems (as luceos mentioned); that change will be in the next beta release. In the meantime, follow the specific instructions provided with the extension you want to install.
luceos Sorry, should have pinged you on that change!