Issue while trying to set up local server #2979
-
So i was trying setup the music blocks server locally as instructed in the docs. After the cloning the repo i ran the following command as mentioned in the docs: python -c "import os, sys; os.system('python -m SimpleHTTPServer 3000 --bind 127.0.0.1') if sys.version_info.major==2 else os.system('python -m http.server 3000 --bind 127.0.0.1'); I get the following error. bash: syntax error near unexpected token `'python -m SimpleHTTPServer 3000 --bind 127.0.0.1'' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @AnshVM , I have solved this error #2979 on my Windows 10 machine. Just follow along these steps:-
Thats it ! Hope i was able to help you. happy coding ! |
Beta Was this translation helpful? Give feedback.
-
I doubt it, but @meganindya and @walterbender would know better than me. |
Beta Was this translation helpful? Give feedback.
Hey @AnshVM , I have solved this error #2979 on my Windows 10 machine.
(The error refers to the port 3000 already being used by some other process, I couldn't find a way to get the process which is using port 3000, so we will try port 8080.)
Just follow along these steps:-
python -c "import os, sys; os.system('python -m SimpleHTTPServer 8080') if sys.version_info.major==2 else os.system('python -m http.server 8080 --bind 127.0.0.1')"