Error installing Volto (Mastering Plone 6)

This is on Ubuntu 20.04 LTS. I'm following the instructions at 7. Installing Plone for the Training — Plone Training 2021 documentation

It's puzzling to get a Permission denied error when running as root :slight_smile:

root@li2217-71:~/training/backend# npm init yo @plone/volto
npx: installed 15 in 4.364s
sh: 1: node: Permission denied
sh: 1: node: Permission denied
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! core-js@3.14.0 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the core-js@3.14.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-06-05T15_19_19_031Z-debug.log
Install for [ 'yo@latest', '@plone/generator-volto@latest' ] failed with code 1
✔ create-yo ok!

Might be a case like this:

tibi@LAPTOP-HRK7BMFH:~$ touch non-existing-file
tibi@LAPTOP-HRK7BMFH:~$ ./non-existing-file
-bash: ./non-existing-file: Permission denied

In this case, there's something weird with your node install. I recommend that you use NVM to install and activate node LTS, then you don't even have to use root.