usermod -aG sudo <username>
find <directory> -type f | wc -l
Also suppress permission denied errors:
find <directory> -type f 2> /dev/null | wc -l
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
sudo apt-get install nodejs
gets you node8 (which is old)curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
sudo apt-get install -y nodejs
Rendering context...