# "jsyaml is not defined"

**URL:** <https://community.postman.com/t/jsyaml-is-not-defined/15199>\
**Category:** Help Hub\
**Tags:** tests, api\
**Created:** [August 20, 2020, 1:54pm UTC](https://community.postman.com/t/jsyaml-is-not-defined/15199 "2020-08-20T13:54:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ButtockFlesh](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@ButtockFlesh](https://community.postman.com/u/ButtockFlesh)\
**Post date:** [August 20, 2020, 1:54pm UTC](https://community.postman.com/t/jsyaml-is-not-defined/15199/1 "2020-08-20T13:54:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 30, 2025, 2:30pm UTC](https://community.postman.com/t/jsyaml-is-not-defined/15199/2 "2025-04-30T14:30:10Z")

</div>

Closed on April 30, 2025, 2:30pm UTC


