Does AffiliateWP work on non-WordPress sites?

No. AffiliateWP is a WordPress affiliate plugin, so it will NOT work on sites that do not use WordPress. Additionally, AffiliateWP is only compatible with WordPress.com when the account level is Business or eCommerce. You must be using a self-hosted version of WordPress to utilize AffiliateWP.