将wamp html / css / js移动到节点简单易行的方式

时间:2018-05-02 01:11:19

标签: html node.js

假设存在html文件和关联的css / js / image /文件并在wamp中使用。有人可以告诉我使用节点快速服务吗?

假设index.html

1 个答案:

答案 0 :(得分:0)

npm install -g pm2
pm2 serve path port

使用PM2模块可以非常简单地实现静态文件服务器。

enter link description here