adds error if not used with npm run script