Uses the npm variable instead of invoking the script directly.