Because Python 2 was sunsetted on January 2020, the newest Appflow build stacks do not include this Python version. Because of this, projects that use
node-sass will encounter build errors as
node-sass specifically requires Python 2 to complete its installation during the Appflow build process.
The npm page for this package indicates that
node-sass was deprecated in October 2020, recommends using
dart-sass as its replacement. Therefore, projects using
node-sass should be updated to use
dart-sass to avoid this error.