I had weird errors like this when trying out M1… setting up libraries on M1 requires additional details around chip set arch and not following it during installation doesn’t throw any error but its just doesn’t work during build/compile time. As an example, checkout this thread https://stackoverflow.com/questions/65342769/install-node-on-m1-mac