Failed to deploy website: Command failed with exit code 255

Hi @Cong902 :wave:t6:,

Welcome to the forums! Thanks for reaching our sorry to hear your build has been failing.

Please try the following and let me know if it works.

npm install
npm run make:prepare
HUGO_VERSION= (latest version of HUGO) npm run serve

hugo-cli dependency will shadow Netlify buildbot Hugo version based on whatever is specified in HUGO_VERSION and will do it with the non extended version.

The Hugo version will be downloaded under node_modules hence, cached for future builds.

Solution - remove hugo-cli dependency or use hugo-extended.