In order to use the external Javascript libraries in Lightning Web Component, you have to download the library from the third-party library’s site and then upload the library to your Salesforce organization as a static resource, which is a Lightning Web Components content security policy requirement.
