ollama-js
ollama-js copied to clipboard
ReferenceError: XMLHttpRequest is not defined
When i run node demo.js,and then:
/User/xxx/Demo/aidemo/node_modules/whatwg-fetch/dist/fetch.umd.js:540 var xhr = new XMLHttpRequest(); ^
ReferenceError: XMLHttpRequest is not defined
I had the same error on Node.js v17
.
Tried lots of things then accidently found out that it's working perfect with Node.js v18
.