Shred the butternut squash either using a box grater or to save time use a food processor.
In a large bowl combine the shredded butternut squash, sliced onions, salt, and spices. Mix it well, then leave it aside for 5 minutes. The onions will release moisture and then add the chickpea flour. Mix till it is well combined