Error 86: 

#!/bin/bash

# Loop through all directories in PATH
for dir in  ${PATH//:/ }; do
    echo "$dir"
  # Check if directory exists before trying to access
  if [ -d "$dir" ]; then 
    # Loop through executable files in this directory
    for file in $dir/*; do
      # Check if file is executable
      if [ -x "$file" ]; then
        # Run desired command on executable file here
        # For example:
        if output=$(lipo -archs $file 2> /dev/null ); then
          echo "$file" "$output" | grep -v "fatal error" | grep -v "arm64"
        fi
      fi
    done
  fi
done

% ./find86.sh
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/usr/local/bin/aws x86_64
/usr/local/bin/aws_completer x86_64
/usr/local/bin/wkhtmltoimage x86_64
/usr/local/bin/wkhtmltopdf x86_64
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/go/bin


///Rosetta fix: 

Running softwareupdate --install-rosetta fixes it for me.
(I ran that as part of installing Docker as per https://docs.docker.com/desktop/mac/apple-silicon/; since that appears to be a compatibility layer for older Mac binaries, I wondered if it might also fix this problem, and it seems to!)


https://github.com/mikaelbr/node-notifier/issues/361#issuecomment-968916810 