npm install --save html2canvas jspdf
进行该依赖下载时,报错:
This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
原因是npm版本过期,我的旧版本是6.14.15,更新到8.5.3,再次执行npm install --save html2canvas jspdf就能成功下载了