Why am I getting errors when using Shopify CLI for theme development?

I installed the Shopify cli for developing my Shopify theme. But WHEN I command [shopify theme serve] for preview my store locally I got the following error =====

[Note] You cannot use gems with Shopify CLI.
[LoadError] cannot load such file – wdm
They are disabled.
Please don’t modify the CLI locally.
If you would like to contribute to the CLI project, please refer to
https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md

Please add the following to your Gemfile to avoid polling for changes:
gem β€˜wdm’, β€˜>= 0.1.0’ if Gem.win_platform?
┏━━ Viewing theme… ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ * Syncing theme #129201897642 on moovintages.myshopify.com
┃ 100%
┃ 17:15:52 ERROR Β» update Moovintages/layout/password.liquid:
┃ 404
┃ 17:15:52 ERROR Β» update Moovintages/layout/theme.liquid:
┃ 404
┃ 17:15:53 ERROR Β» update Moovintages/sections/announcement-bar.liquid:
┃ 404
┃ 17:15:53 ERROR Β» update Moovintages/sections/apps.liquid:
┃ 404
┃ 17:15:53 ERROR Β» update Moovintages/sections/cart-icon-bubble.liquid:
┃ 404
┃ 17:15:54 ERROR Β» update Moovintages/sections/cart-live-region-text.liquid:
┃ 404
┃ 17:15:54 ERROR Β» update Moovintages/sections/cart-notification-button.liquid:
┃ 404
┃ 17:15:54 ERROR Β» update Moovintages/sections/cart-notification-product.liquid:
┃ 404
┃ 17:15:55 ERROR Β» update Moovintages/sections/collage.liquid:
┃ 404
┃ 17:15:55 ERROR Β» update Moovintages/sections/collapsible-content.liquid:
┃ 404

Hi @Suzan_n

use this command to install wdm and your issue will resolve.

gem install wdm

1 Like

I am getting an error when running gem install wdm.