
ショコラ
Node.js httpdサーバーを用意するには?
npxコマンド で httpサーバー を起動するとブラウザが開くので、ファイルをクリックするだけです。

もっさん先輩
nodeをインストールしてから、httpサーバーを起動します。
npx http-server -o

静的ファイルを配置して、ブラウザでアクセスしてみましょう。
http://localhost:8080/a.html
以上
Node.js httpdサーバーを用意するには?
npxコマンド で httpサーバー を起動するとブラウザが開くので、ファイルをクリックするだけです。
nodeをインストールしてから、httpサーバーを起動します。
npx http-server -o
静的ファイルを配置して、ブラウザでアクセスしてみましょう。
http://localhost:8080/a.html
以上