最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nuxt.js - Why does Amplify Nuxt build fail every time I change packages.json? - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论