musicblocks icon indicating copy to clipboard operation
musicblocks copied to clipboard

bash: syntax error near unexpected token `'py -m SimpleHTTPServer 3000''

Open Sarfraz-droid opened this issue 3 years ago • 2 comments

Hi, I'm a newbie here. So i was trying to run this repo but when I run

py -c \"import os, sys; os.system('py -m SimpleHTTPServer 3000') if sys.version_info.major==2 else os.system('py -m http.server 3000 --bind 127.0.0.1');

there's an error on my console showing

`bash: syntax error near unexpected token `'py -m SimpleHTTPServer 3000''
`

Sarfraz-droid avatar Sep 22 '21 18:09 Sarfraz-droid

@Sarfraz-droid i was also getting same error. only run this command npm run serve. you don't need to run this py -c \"import os, sys; os.system('py -m SimpleHTTPServer 3000') if sys.version_info.major==2 else os.system('py -m http.server 3000 --bind 127.0.0.1');

rahulkiller104 avatar Oct 22 '21 18:10 rahulkiller104

hi i got the same error you just need to install python on your computer and then add it to the path of your system

StevyMarlino avatar Feb 05 '22 10:02 StevyMarlino