c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does X0 works on windows 10?

fermartz opened this issue · comments

First of all,
Thanks for this wonderful tool!

This might be a dumb question but I can't find any answer yet.
In my MAC computer X0 works perfectly but here at work I just installed it on windows 10 and when I try to run the server it just hangs for a long time then it throws the following error.

image

Any clues ???

Problem:
I've found that the issue above appears only when you try to run the server after you have installed X0 both globally and locally. In my case, I installed X0 globally but windows 10 can't recognize the command unless you add an environmental variable and run it from nodejs. command prompt (what a pain). So, I went and installed locally, which it doesn't work on my case. After that, if you try to run it globally from node.js cmd the error above shows up.

Solution:
Delete node_modules and the dependency in project.json, then you can run it globally from node.js cmd.

If somebody has a better solution please post it here.
Thanks!