download fontawesome npm code example
Example 1: npm font awesome
npm install --save font-awesome
Example 2: npm font awesome 5
import '@fortawesome/fontawesome-free/js/all.js';
npm install --save font-awesome
import '@fortawesome/fontawesome-free/js/all.js';