"jsyaml is not defined"

I am trying to use the governance collection provided by Postman. I have installed js-yaml but

get this on all the tests that us it:

message: “jsyaml is not defined”

This is where it happens in the script

if(openapi_language==‘yaml’){

    try {

      var oas = jsyaml.load(schema_body);

    } catch (e) {

      console.log(e);

    }  

}

I installed it as follows:

npm install -g js-yaml