【发布时间】:2020-04-25 09:25:43
【问题描述】:
html2canvas 主要版本的文档说它目前不支持盒子阴影,但现有版本支持。本页展示了 html2canvas 使用框阴影 working box shadows
我想将此版本添加到我的项目中并尝试过
npm install --save https://github.com/niklasvh/html2canvas.git
将这一行添加到我的 package.json 文件中
"html2canvas": "git://https://github.com/niklasvh/html2canvas.git",
但是当我尝试用
导入html2canvasimport html2canvas from 'html2canvas';
它给出了错误
Module not found: Can't resolve 'html2canvas'
我以前从未直接从 git 使用过库或 npm 包 - 我做错了什么?
【问题讨论】:
标签: reactjs git npm-install html2canvas