I am trying to follow the tutorial referenced in codelab tools github home pageÂ
https://medium.com/zarinlo/publish-technical-tutorials-in-google-codelab-format-b07ef76972cd .
I have downloaded all the pre-requisites and I am trying to run NPM install from the site directory. But I get an error returned from gyp. I've attached the full log, but here is the subset with the error:
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack  File "<string>", line 1
npm ERR! gyp ERR! stack   import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack            ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack   at ChildProcess.exithandler (node:child_process:419:12)
npm ERR! gyp ERR! stack   at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack   at maybeClose (node:internal/child_process:1091:16)
npm ERR! gyp ERR! stack   at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! gyp ERR! System Linux 5.15.90.1-microsoft-standard-WSL2
npm ERR! gyp ERR! command "/usr/local/node-v18.16.0-linux-x64/bin/node" "/home/eost/codelab/tools/site/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /home/eost/codelab/tools/site/node_modules/node-sass
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
Some potentially unusual details about my system. I am running Ubuntu on Windows Subsystem for Linux (WSL).
I have python3 installed so I set the npm to us it
  npm config set python /usr/bin/python3
I am using python 3.8.10.