require npm install during build as a dependency
use tv4 from node package
use tv4 from node package
check to make sure an array with no data will reject the promise
clean up debug