npm 下载下来的 node_modules 文件也需要传到服务器上吗?

JellyBool

不需要的,最佳实践的做法是线上部署的时候 npm install ,然后 build