Support for Windows set up
See original GitHub issueHello! I am having many troubles while trying to set up baseui
on Windows 10. Here are the steps I took:
-
The first issue I had was with a
cp command not found
here.https://github.com/uber-web/baseui/blob/cedaaab62c5e137c22e5ee31bb6e559391a230ab/package.json#L26 After changing the command tocopy
and updating the paths with backslash instead of slash, the file was copied. -
After that I had troubles with lines that execute Javascript files, like this one. https://github.com/uber-web/baseui/blob/cedaaab62c5e137c22e5ee31bb6e559391a230ab/package.json#L27 I solved it by appending
node
in the front, like this:"build:copy-flow-files": "node .\\scripts\\flow-copy-src.js"
-
At this point, I was able to run the
yarn
command with no errors. When I try to runyarn documentation:dev
, after some time it shows the messagebabel compiled 314 files successfully
. However the console does not run any process at all after this, neither gives you the option to enter other commands nor launches the documentation onlocalhost
, as it should. If I try to runyarn documentation:serve
instead, I get a404 not found
error.
I don’t think making so many changes on package.json
and other files is a reasonable solution. I am considering installing Linux OS
system and Windows Subsystem for Linux
on my machine but I REALLY wanted to avoid doing this. I already set up the project on a macbook successfully, so it is definitely a problem with Windows. Any help is welcome. Thanks!
P.S. I’ll provide more details about my set up when I get home.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (15 by maintainers)
this happens if the dev server cannot start listening on port 3000 - can you double check if you have nothing listening on that port?
sounds good, thank you! please reopen if needed! 😃