56a0920ebd032ee978a767a1deb33933e5c0f318
Gitcub / setup-notes.txt
After uninstalling the native versions of nodejs and npm from debian 10, I installed nodejs 16.14.0 thus:
cd ~
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
From the project directory I initialized the project and installed express.js and pug using a special option to avoid a stupid error:
npm init
npm install express --no-bin-links
npm install pug --no-bin-links
At this point I moved this directory from my nas to 'Desktop'. The nas may have been responsible for the bin-linking error above.
I then setup sqlite; the then current npm package required an audit fix, resulting in its downgrade to 4.2.0:
sudo apt install sqlite3
npm install sqlite3
npm audit fix --force
I then installed next.js and turned off its sickening telemetry anti-feature:
npm install next react react-dom
npx next telemetry disable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25