Page 1 of 1

jamovi module installation errors on Windows

Posted: Sat Apr 02, 2022 3:38 pm
by xz3180
Hi,
When I tried to follow the tutorial step to install the jamvoi tool, it showed this error.
These are my codes:
jmvtools::check()
jmvtools::check(home = "C:/Program Files/jamovi 1.2.27.0")

jmvtools::create("termfreq")
jmvtools::addAnalysis(name = 'termfreq', title='Term Frequency')
setwd("termfreq")
options(jamovi_home = "C:/Program Files/jamovi 1.2.27.0")
jmvtools::install()

This is the error message:
TypeError [ERR_INVALID_ARG_TYPE]: The "buffer" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of TypeError
at Object.writeSync (fs.js:704:5)
at C:\Users\73149\OneDrive\Documents\R\win-library\4.1\jmvtools\node_modules\jamovi-compiler\index.js:555:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)

The "buffer" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of TypeError

I have no idea about this error. Do you know how to solve it?

Thank you!

Re: jamovi module installation errors on Windows

Posted: Sun Apr 03, 2022 12:24 am
by jonathon
there's a problem with your module, but that's not a very helpful error message. update your jmvtools to the latest version, and i think you'll get a better error message.

install.packages('jmvtools', repos='https://repo.jamovi.org')

cheers

Re: jamovi module installation errors on Windows

Posted: Tue Apr 05, 2022 2:32 am
by xz3180
Hi Jonathon,
I updated the jmvtools to the latest version.
Now I got the error message:
Cannot read property 'jmv_packages' of undefined


> jmvtools::install()

jamovi compiler

jamovi 1.2.27 found at C:\Program Files\jamovi 1.2.27.0\bin\jamovi.exe
wrote: termfre.h.R
wrote: termfre.u.yaml
wrote: termfre.src.js
wrote: termfre.js
writing module meta
wrote: 0000.yaml
wrote: jamovi.yaml
wrote: jamovi-full.yaml

Cannot read property 'jmv_packages' of undefined

Re: jamovi module installation errors on Windows

Posted: Tue Apr 05, 2022 2:34 am
by jonathon
oh yup. your version of jamovi is really old. update to a newer version, and you'll be sweet.

jonathon

Re: jamovi module installation errors on Windows

Posted: Thu Apr 07, 2022 4:28 am
by xz3180
Hi Jonathon,
It worked! Thank you!