DEV Community

Ajeet Singh Raina
Ajeet Singh Raina

Posted on • Edited on

How to fix hugo "fatal error: pipe failed #84" error in Mac OS?

Alt Text
While installing hugo 0.80 on my Apple Macbook Pro, I faced "fix hugo error:pipe failed" error message. After spending 10 minutes,I was lucky to fix the issue by running the below sets of CLIs:

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535
Enter fullscreen mode Exit fullscreen mode
 hugo server
Start building sites … 

                   | FA | NO | EN  
-------------------+----+----+-----
  Pages            | 18 | 76 | 20  
  Paginator pages  |  0 |  0 |  0  
  Non-page files   |  3 |  1 |  2  
  Static files     | 38 | 38 | 38  
  Processed images |  7 |  2 |  4  
  Aliases          |  3 |  0 |  0  
  Sitemaps         |  2 |  1 |  1  
  Cleaned          |  0 |  0 |  0  

Built in 522 ms
Watching for changes in /Users/ajeetraina/projects/community/{assets,content,layouts,package.json,themes}
Watching for config changes in /Users/ajeetraina/projects/community/config.toml, /Users/ajeetraina/projects/community/themes/docsy/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313///community/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Enter fullscreen mode Exit fullscreen mode

Enjoy!

Top comments (2)

Collapse
 
robert_doyle_7aa3c5abbe8c profile image
Robert Doyle

thank you! this actually worked for me!

Collapse
 
ascensus_mdb profile image
Michal Szymanski

Works for me as well, thank you very much @ajeetraina ! But it seems I have to type it every time I re-launch my computer. Is there a way to set it up pernamently?