1、glob模块, glob.sync(’./src/*/main.js’) : 获取文件路径名 2、fs模块: fs.readFile fs.writeFile fs.unlink fs.exists fs.mkdir