Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

Slate Migrate hangs on migrating files. #994

Open 26mrkt opened 5 years ago

26mrkt commented 5 years ago

Problem

I downloaded my theme and then ran slate migrate to migrate the theme. However, when it started to migrate, it stopped and didn't finish.

Replication steps

slate-migrate-hangs

More Information

I'm posting this because I couldn't find an answer or solution anywhere online.

To solve:

  1. I terminated by hitting "CTRL" + "C" and saying yes.

  2. Then I had to open the package.json file and add devDependencies, (see the following)...

    Original file: { "name": "theme", "version": "0.0.1" }

    New file (what I added): { "name": "theme", "version": "0.0.1", "devDependencies": { "@shopify/slate-tools": "0.14.0" } }

  3. In command line, I made sure I was back in the correct folder which would be the unzipped theme folder). Then I ran the npm install command.

  4. I ran slate build

  5. I had to manually add a config.yml file.

  6. Then slate deploy.

  7. Then slate start.

Comment

I'm not savvy when it comes to this stuff but this is how I got it all to work (finally). Initially I tried removing Node.js // npm off the computer, and reinstalling, but nothing changed.

Hope this helps. Can anyone explain to me what happened though? I guess I am missing the devDependencies but I don't know how any of this works, so what would I have to do to make sure that when slate migrate runs, it adds this part? Any help with that would be greatly appreciated.

drtyrell969 commented 5 years ago

I'm having the same problem. I used your steps, which did more than I'd been able to get going before, but my "slate migrate" hangs just like your screenshot. So frustrating. I'm trying to get my Windows 10 machine identical to my Mac OS machine so that I can develop wherever I am.

26mrkt commented 5 years ago

drtyrell969,

After you installed the dev dependencies, did you change directory to your theme folder and try running npm install within that folder? I realized that I didn't mention that in my original post. And that gave me some progress.

drtyrell969 commented 5 years ago

Thank you for responding. This was the "ground up" approach.

Then it hung just like your picture.

drtyrell969 commented 5 years ago

Okay, development:

Running in PowerShell doesn't work.

Running in GitBash WORKS!