jamovi module installation errors on Windows

Everything related to the development of modules in jamovi
Post Reply
xz3180
Posts: 4
Joined: Fri Apr 01, 2022 6:08 pm

jamovi module installation errors on Windows

Post 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!
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: jamovi module installation errors on Windows

Post 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
xz3180
Posts: 4
Joined: Fri Apr 01, 2022 6:08 pm

Re: jamovi module installation errors on Windows

Post 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
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: jamovi module installation errors on Windows

Post by jonathon »

oh yup. your version of jamovi is really old. update to a newer version, and you'll be sweet.

jonathon
xz3180
Posts: 4
Joined: Fri Apr 01, 2022 6:08 pm

Re: jamovi module installation errors on Windows

Post by xz3180 »

Hi Jonathon,
It worked! Thank you!
Post Reply