最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

node.js - Install lv_img_conv as npm module - Stack Overflow

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论