It seems like every time I add a new module via npm install, the build fails on Amplify on production. It works fine locally, but I get a fairly unhelpful error in the build logs:
> nuxt build
2025-02-10T09:35:30.329Z [WARNING]: sh: line 1: nuxt: command not found
2025-02-10T09:35:30.340Z [ERROR]: !!! Build failed
2025-02-10T09:35:30.340Z [INFO]: Please read more about Amplify Hosting's support for SSR frameworks to find if your build failure is related to an unsupported feature: .html. You may also find this troubleshooting guide useful: .html
2025-02-10T09:35:30.341Z [ERROR]: !!! Error: Command failed with exit code 127
The only way I've found to rectify is to create a new branch from an old (working) commit, and step forward from there.
That build ^ failed after I installed @headlessui/vue - it's working fine locally, but causes the build to fail on Amplify.