How to add External javascript library in Ionic2 Application

If when importing the library it returns an error like:

Error: Cannot find module “three” at webpackMissingModule…

Which would be the problem?