npm cache clean --force

C++
# To clear a cache in npm, we need to run the npm cache clean --force command in our terminal:
npm cache clean --force
# clean: It deletes the all data from your cache folder.

# You can also verify the cache, by running the following command:
npm cache verifynpm cache clean --forcenpm cache clean -f
Source

Also in C++: