I'm currently setting up a PrestaShop local environment. but when npm installing I receive an error when it tries to install node-sass. could someone please explain how I can fix this?
This error can occur in a few different ways, and it's generally nuanced to try to get NPM to find your existing Python correctly, but an easy fix that should work is to open an administrator PowerShell and run
npm --add-python-to-path='true' --debug install --global windows-build-tools
and then
npm install --global node-gyp
Note that the first step will install Windows Build Tools which may be a sizeable download.