How do I clear the phantomjs cache on a mac?

2019-03-04 00:18发布

问题:

I somehow corrupted the phantomjs cache while testing with karma (writing pouchdb tests). How can I clear this cache and get back to my original testing enviornment?

回答1:

It took me days to figure this out so I figured I'd post it here, just

rm -rf ~/Library/Application\ Support/Ofi\ Labs/PhantomJS/*

I hope this saves someone else the hassle!