You can definitely use npm if you develop locally, then synch your project with Monaca IDE by using Monaca CLI/Localkit. Definitely, you cannot use npm directly from Monaca IDE.