[英]Error when attempting to deploy Next.js app to Zeit cloud, running in dev mode
解決問題的方法是,我編寫了一個bash腳本,該腳本執行以下步驟。
# Delete build files
sudo rm -rd .next
# Delete node modules
sudo rm -rd node_modules
# Then I ran this without installing the node_modules again
now dev
當我讓zeit構建器安裝node_modules
,測試部署的工作就像一個魅力。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.