Investors are losing their appetite for meal kits.

Just a few years ago, the business of delivering packages containing premeasured ingredients that people assembled into meals was a novel one, drawing hundreds of millions of dollars from venture capitalists and other investors.

Now, many are questioning the viability of meal-kit startups...