Adaptor instalation error (http)

Hello everyone.

Greetings from Colombia.

I am new here and just started learning.

I am getting this error when installing the http adaptor:

PS I:\Mi unidad\source> openfn getPosts.js -ia {http}           
[CLI] ✔ Installing packages...

[CLI] ✘ Command failed!
[CLI] ✘ [Error: EINVAL: invalid argument, mkdir 'I:'] {
  errno: -4071,
  code: 'EINVAL',
  syscall: 'mkdir',
  path: 'I:'

Let me know if I did something wrong.

Thanks in advance!


Welcome to the community @fhernandez !

Hrmmm… what do you get when you run openfn version? I’m on:

[CLI] ℹ Versions:
         ▸ node.js     18.12.1
         ▸ cli         0.1.0
         ▸ runtime     0.0.26
         ▸ compiler    0.0.32

I haven’t see that error before but maybe @mtuchi knows something about it? Knowing what operating system you’re using would also be super helpful. Might be some setup issue, but you also could have found a bug with OpenFn/adaptors or OpenFn/kit.


Hello, @taylordowns2000 . This is my openfn version:

PS I:\Mi unidad\source> openfn version
[CLI] :information_source: Versions:
▸ node.js 18.16.1
▸ cli 0.1.0
▸ runtime 0.0.26
▸ compiler 0.0.32

My operating system is windows 11 pro.

Thanks for your reply.


Interesting. I’m honestly not 100% sure if anyone has built a Windows version of the CLI. I’ll ask around today and see if anyone else has bumped into this issue!

I do see that there’s an open issue to add integration tests for Windows here: integration-tests: run on windows · Issue #168 · OpenFn/kit · GitHub

Hi Fabio,

This looks like a problem with our Windows setup. We’re mostly Linux-based here and we really don’t get to test windows enough. I’ll look into that specific problem.

It looks like the CLI is crashing trying to set up a “repo” on your machine - this is just a folder the CLI will install adaptors into.

There are a few workarounds - this I think is the easiest:

  • Create a repo folder somewhere on your system (i:\openfn\repo would be fine, whatever suits you)
  • Set an environment variable OPENFN_REPO_DIR which contains a path to this folder (here’s some help for this)
    You only have to do this once. When your repo is setup it should all just work.

Let me know how you get on!


Hello, @jclark . It did work:

PS C:\openfn> openfn getPosts.js -ia http
[CLI] :heavy_check_mark: Installing packages…
[CLI] :heavy_check_mark: Installed @openfn/language-http@4.3.3
[CLI] :heavy_check_mark: Installation complete in 31.65s
[CLI] :heavy_check_mark: Compiled from getPosts.js
[R/T] :diamonds: Starting job job-1
GET request succeeded with 200 ✓
[JOB] :information_source: {“userId”:1,“id”:1,“title”:“sunt aut facere repellat provident occaecati excepturi optio reprehenderit”,“body”:“quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto”}
[R/T] :heavy_check_mark: Completed job job-1 in 936ms
[CLI] :heavy_check_mark: State written to output.json
[CLI] :heavy_check_mark: Finished in 32.779s :sparkles:

Thanks for your help :handshake:.


Hi Fabio, that’s great news!

I’ll go ahead and get a fix in place so that this is easier for the next person to come along.

Hi Fabio,

I’ve been having a hard time reproducing this on my own Windows machine. I wonder if you could answer a couple of questions for me?

Is there anything special about the I: drive - is it a network drive or something like that?

I also notice your last code snippet ran from the C: drive, does the I drive work as well?

Thanks in advance!


Hi, Joe.

The I: drive was a google drive location. I thought It was not the most suitable for this case. Hence, I created the openfn folder in the C: drive, where Windows and all the programs are installed.

I don’t know if this could help but, as I just started learning about openfn, I was following this guide:

I was performing the task " create a file called getPosts.js" , so I put the get getPosts file inside the openfn folder.

I hope the above is useful to you.


That might be very useful indeed Fabio - thank you so much!

Hi, Joe.

I just wanted to know if something changed in Openfn. I am getting a new error and cannot run any adaptor:

Thank you.


UPDATE: no worries about responding to this message. I reinstalled openfn and everything is back.

Glad it all worked! Keep us posted if you bump into any other Windows errors, please! Also, I’m sure you have this already but the repo for tracking issues and contributing to the CLI is over here:

As we don’t have a ton of Windows users, we’d really appreciate your help making sure the Windows developer experience is good!