npm install fontawsome pro code example
Example 1: font awesome npm
npm install --save @fortawesome/fontawesome-free
Example 2: how to install font-aweseome usin npm
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />