Description
I installed the npm as indicated. Ignoring the errors, I then tried:
node example.js
where example.js contained the code in the installation instructions
This gave the error:
schema $id ignored http://json-schema.org/draft-07/schema#
schema $id ignored http://json-schema.org/draft-07/schema#
schema $id ignored http://json-schema.org/draft-07/schema#
/home/alson/node_modules/elixir-jsonschema-validator/src/elixir-validator.js:111
customKeywordValidators.forEach(customKeywordValidator => {
^
TypeError: Cannot read property 'forEach' of undefined
at Function._addCustomKeywordValidators (/home/alson/node_modules/elixir-jsonschema-validator/src/elixir-validator.js:111:33)
at ElixirValidator.constructAjv (/home/alson/node_modules/elixir-jsonschema-validator/src/elixir-validator.js:105:25)
at new ElixirValidator (/home/alson/node_modules/elixir-jsonschema-validator/src/elixir-validator.js:22:33)
at Object. (/home/alson/Downloads/example.js:14:17)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)