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