简体   繁体   中英

Error: Command "vercel build" exited with 1 in Tailwindcss

After putting the project on GitHub It cannot be deployed in Vercel And I got the following error:

Error: Command "vercel build" exited with 1

friends, After a lot of searching, I finally solved my problem. It was because:

  • My script for building the project was (npm run dev), while Vercel deploys such projects with the (npm run build) command.

  • You should also pay attention to the public folder inside your project, Because it may have another name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM