admin管理员组文章数量:1355555
Trying to install lv_img_conv as a npm module, but keep getting errors. Already have canvas and typescript installed globally. Results in a whole list of EPERM and other errors, but ultimately doesn't allow me to install lv_img_conv (not even from an admin cmd prompt).
Also tried to maintain this library external to the project and import the main converter function from lib/cli.ts into my node project
const convertAllImages = require('../external_libraries/lv_img_conv-master/lib/cli');
But server fails to recognize the module.
Error: Cannot find module '../external_libraries/lv_img_conv-master/lib/cli'
Any help would be greatly appreciated on how to proceed so I can use the convertAllImages function from this library into my node code.
本文标签: nodejsInstall lvimgconv as npm moduleStack Overflow
版权声明:本文标题:node.js - Install lv_img_conv as npm module - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744020383a2577069.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论