To use the npm module on your interface, you will need to do something like transpiling with webpack, gulp, or, most likely, grumble.
Then, at the entry point of your application, before you write html / jsx / some other html-esque code, you will need to require or import the css file from the amazing npm font module.
// es6/babel import import 'font-awesome/css/font-awesome.min.css'; // browserify require statement if not using babel/es6 require('font-awesome/css/font-awesome.min.css');
For example, this is a response application that I made with webpack / babel, and in the entry point file I import the css file from the awesome font: https://github.com/AkyunaAkish/akyuna_akish/blob/master/client/index. js
FYI: I used
npm install
Instead of the command you used. You may need to adjust the path of the import / require file to point to the main css file in your awesome node_module package if we have slightly different packages.
source share