Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 CamanJS 与 React 一起使用,我正在npm install caman按照文档作为节点模块安装,但出现错误。我试过用require它带进来,我也试过import。该包位于我的 node_modules 文件夹中。
npm install caman
require
import
继承人的错误:
控制台警告:
很感谢任何形式的帮助!
是的,问题是纤维正在寻找环境变量,但是因为您在浏览器中运行它,所以它找不到它们。npm i -s caman 旨在与节点一起使用。真是个无赖。