This is a setting example for displaying the product SKU on the cart screen of the Shopify theme "Dawn". You can also turn the display on and off in the theme editor settings screen, but if you are sure you want to display it, I think it's fine to just write the code directly.
Example of setting to display SKU on the cart screen of the theme "Dawn"

