install font awesome with npm code example
Example 1: npm font awesome
npm install --save font-awesome
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" />
Example 3: npm font awesome 5
import '@fortawesome/fontawesome-free/js/all.js';
Example 4: npm font awesome 5
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~@fortawesome/fontawesome-free/scss/<type>';