Npm js modules not found in meteor angular2 typescript project

When i install any npm module (js), it’s not found in meteor - angular2 - typescript project when i’m trying to import with module name.

Below are the steps i followed…

npm install authenticator --save

in my .ts file:

import {authenticator} from ‘authenticator’; --> here it is saying cannot find module authenticator.

Is there a way to solve this?

Use the following instead:

import authenticator from 'authenticator';

If that doesn’t work, what do you see when you try:

const authenticator = require('authenticator');
console.log(authenticator);