skip to Main Content

I’m following a tutorial about custom Shopify themes. I’ve created a repo with my theme files. I’ve created a new project with npm init, no problem there.

I’ve then installed Slate with npm install @shopify/slate --save, again without any issues.

However, when I try to run any Slate commands, eg slate -v or slate migrate I get an error message:

-bash: slate: command not found

Would anyone know what I could do to fix this?

(ps I also tried npm install @shopify/slate --save-dev. My version of npm is 6.2.0)

2

Answers


  1. Try installing Slate with the global flag npm install -g @shopify/slate

    If that fails, check your Node version and see if any issues with your OS/Version

    Login or Signup to reply.
  2. In the tutorial, it suggests you use either npx or yarn to install Slate. Try:

    npx slate-tools build
    

    or

    yarn slate-tools build
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search