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

Error: ENOENT on any slate command #1049

Open jpicao opened 4 years ago

jpicao commented 4 years ago

Im new in using slate but i followed the guidelines on installing slate V 0, right now im getting this message when i try any slate command

fs.js:145 throw err; ^

Error: ENOENT: no such file or directory, scandir 'C:\Users\John\Documents\JOB FILES\plushland\public\node_modules\@shopify\slate-tools\lib\commands' at fs.readdirSync (fs.js:895:3) at Object. (C:\Users\John\AppData\Roaming\npm\node_modules\@shopify\slate\lib\index.js:93:23) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

im currently running Gulp CLI version: 2.2.0 Local version: 3.9.0 node v10.4.1

jonathanmoore commented 4 years ago

It sounds like you're using too new of a version of node. When working on a v.0 project I always roll back to Node 6.11.5—it might be excessively low, but I know it works.

Maurice-JB commented 4 years ago

If downgrading doesn't work, a colleague who recently encountered this issue for hours ended up reinstalling npm, yarn and node and that fixed it. No idea exactly which one did it ultimately 🤷🏻‍♂️

Maurice-JB commented 4 years ago

Just an additional note if anyone else is struggling with this. If you're behind a corporate firewall that injects certs, it can play havoc with npm/yarn. Try hotspotting instead.