簡體   English   中英

聚合物服務與python -m http.server

[英]polymer serve vs python -m http.server

我正在關注這份文件

npm install -g polymer-cli
git clone https://github.com/PolymerLabs/start-polymer3.git
cd start-polymer3
npm install
polymer serve

這有效。 但是,如果我運行python -m http.server而不是polymer serve ,它就不起作用。

有什么區別?

聚合物服務 聚合物服務

python -m http.server python -m http.server

這取決於你的python版本。 看看Python -V然后試試;

# If Python version returned above is 3.X
python3 -m http.server
# On windows try "python" instead of "python3"
# If Python version returned above is 2.X
python -m SimpleHTTPServer

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM