Reputation: 115
I recently installed font-awesome for an angular project, but ran into some issues with where it was saved. When I use:
npm install font-awesome
it adds a node_modules folder to the root of my project. This would be fine, but I already have a node_modules folder in the project. Then I tried using:
npm install font-awesome -p ./path/to/node_modules
It says that there is no package.json file, but I can see that there is one. Am I doing this wrong? If so, how can I specify that I want the font-awesome installation in the existing node_modules folder?
Upvotes: 0
Views: 756
Reputation: 1092
Make sure you are running npm install font-awesome
in the root directory where package.json and node_modules (if existing) resides.
Upvotes: 1
Reputation: 10979
In command prompt go to folder where package.json is and run the command below :-
npm i font-awesome --save
Upvotes: 0