Reputation: 11
I installed Angular fontawesome with this command found here: https://www.npmjs.com/package/@fortawesome/angular-fontawesome
ng add @fortawesome/angular-fontawesome@6
My problem is I realized I wanted to change into Font Awesome's SCSS version and now I'd like to remove Angular Fontawesome (and the icons) from my project.
So far, I've tried these following commands
npm uninstall @fortawesome/fontawesome
npm uninstall @fortawesome/fontawesome6
npm uninstall @fortawesome/angular-fontawesome
Yet some of the dependencies still remain in my package-lock.json:
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1",
"@fortawesome/free-regular-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
Upvotes: 0
Views: 4353
Reputation: 13
Just keep going...
$ npm uninstall @fortawesome/fontawesome-svg-core
$ npm uninstall @fortawesome/free-brands-svg-icons
$ npm uninstall fortawesome/free-regular-svg-icons
$ npm uninstall @fortawesome/free-solid-svg-icons
Upvotes: 0
Reputation: 4875
Run also
npm uninstall @fortawesome/fontawesome-svg-core
npm uninstall @fortawesome/free-brands-svg-icons
npm uninstall @fortawesome/free-regular-svg-icons
npm uninstall @fortawesome/free-solid-svg-icons
Upvotes: 0
Reputation: 300
The way I do it is to delete the node_modules folder, remove what I don't want to have in the package.json and delete the package-lock.json.
Then I run npm install again and it generates a new package-lock.json and the node_modules folder will contain everything remaining in the package.json.
Upvotes: 0