Jump to content

Topic on Talk:Citoid

Nodejs version for citoid

4
Baruneju (talkcontribs)

Helloǃ While following the instructions from the Citoid page, I discovered that the npm install step for citoid does not work with my current node installation. I'm using the 12.20 version from nodesource PPA on Ubuntu 20.04 and I get errors like

gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/giuseppe/citoid/citoid/node_modules/heapdump
gyp ERR! node -v v12.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 

While instead if I perform this step on a ubuntu docker instance with nodejs from standard repo (v10.19), it works fine. Do you have any suggestion on how to overcome this issue without changing the installed version of node? Thanksǃ (PSː I posted this question in @Mvolz (WMF)'s talk page fiew days ago).

Mvolz (WMF) (talkcontribs)

Hello, unfortunately we only support 10 as that's what we run in production - I don't really know much about your production environment but you can use nvm to run multiple versions of node on the same machine- not sure this helps!

Mvolz (WMF) (talkcontribs)

(I've updated the docs now though, thanks for pointing this out!)

Baruneju (talkcontribs)

Thank you, I'm not quite familiar with the node ecosystem, but I'll git it a tryǃ My production environment is luckily my production environment is still clear so I'm going to have this issue only on the development machine. Keep up the good workǃ

Reply to "Nodejs version for citoid"