@ianperrin I went right back to the beginning and started the installation again to ensure I save each step.
During the process I picked up on an error I did not follow up on. After installing --production I had to run ‘npm audit fix’
After running this I tried the authentication again. This time the process did add the token.js file to the MMM=Strava module.
I believe it is working now. I have logged off and rebooted to confirm and the Strava module was working correctly.
pi@raspberrypi:~/MagicMirror/modules/MMM-Strava $ git checkout develop && git pull
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
Already up-to-date.
pi@raspberrypi:~/MagicMirror/modules/MMM-Strava $ npm install --production
npm WARN conflict A git conflict was detected in package-lock.json. Attempting to auto-resolve.
npm WARN conflict To make this happen automatically on git rebase/merge, consider using the npm-merge-driver:
npm WARN conflict $ npx npm-merge-driver install -g
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
added 55 packages from 67 contributors and audited 3075 packages in 32.396s
found 1 moderate severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details // Was important to run this command to make authentication process work correctly
pi@raspberrypi:~/MagicMirror/modules/MMM-Strava $ npm audit fix
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
added 537 packages from 583 contributors in 92.726s
fixed 1 of 1 vulnerability in 3075 scanned packages
pi@raspberrypi:~/MagicMirror/modules/MMM-Strava $ npm audit
=== npm audit security report ===
found 0 vulnerabilities
in 3075 scanned packages
pi@raspberrypi:~/MagicMirror/modules/MMM-Strava $
// Config
{
module: "MMM-Strava",
position: "center",
config: {
client_id: "3---6",
client_secret: "f22b--------------------0d9f7",
mode: "chart",
auto_rotate: "true",
units: "imperial"
}