关于xlsx-style的安装与修改、vue引用xlsx-style组件 1、安装 npm install xlsx-style 2、报错修改源代码 程序启动的时候出现错误,显示:not found ./cptable in node_modules/xlsx-style/dist/cpexcel.js 在\node_modules\xlsx-style\dist\cpexcel.js 807 // var cpt = require('./cpt' + 'able'); //注释掉 807 var cpt = cptable; //换成这一句