recommended NPM packages for moodle 3.9

recommended NPM packages for moodle 3.9

by Ava Taylor -
Number of replies: 2

I'm developing on moodle 3.9.
what version of NPM should I install on my work station and what packages are required/recommended for moodle development?
most importantly what version of Grunt should I install?

I didn't find answers to my questions here:
https://docs.moodle.org/dev/Grunt
https://docs.moodle.org/dev/NPM


Average of ratings: -
In reply to Ava Taylor

Re: recommended NPM packages for moodle 3.9

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
I am working with:
  • npm 6.14.8
  • node 14.2.0
  • grunt-cli v1.3.2
  • grunt v1.3.0

With these versions and packages, I can do basic linting, shiftering, uglifying, sassing, amding, yuiing and grunting.

 

R

In reply to Ava Taylor

Re: recommended NPM packages for moodle 3.9

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

you can find the exact NodeJS version recommended use for every Moodle branch @ the .nvmrc file.

Right now it's node v14.0.0 and if you use nvm it's really easy to keep it maintained. It comes with npm 6.14.4, although that's not important.

Just ensure you're using the correct node, and surely you'll be using the correct npm (specially if using nvm, or another node versions manager).

Ciao smile

PS: Note that, from time to time, we use to bump versions, so maybe current node v14.0.0 will become v14.9.0 or so (in fact surely everything works ok with that one as far as changes within the same release are minimum). In any case, both the docs (link above and other pages too) and also the commented .nvmrc files... will give you the answer.