How to properly install express-processimage?

0

My project is in the last stage of completion, and the image upload and download implementation is working perfectly, the problem is that when I install the lib express-processimage my lib I was already installed and working perfectly as connect-multiparty does not work, the error that appears is that it can not find connect-multiparty , it's as if it were uninstalled. >

What I did to get around this problem was to try to uninstall express-processimage, but I did not succeed in uninstalling, my ult attempt was to delete the package-lock.json node_modules and manually extract the reference from the express-processimage of the package.json file and perform the npm install, but I did not succeed as well, the way was to return the previous version with a versioning program, and returned to normal .

  • I would like to know if lib express-processimage has incompartibility with connect-multiparty lib, or is it because I have wrongly installed lib express-processimage?

  • I installed the wrong way to install correctly?

  • I'm following this documentation

    express-processimage

    The purpose of this lib is to place the URL it will resize the image as in the example below, if the image is 1000x300 it will resize the image to approximately 400x280

    http://localhost:1337/bigImage.png?resize=400

    The installation is simple, I ran the following command npm install -S express-processimage --save then set up my project including these lines of code in my app.js file.

    processImage = require('express-processimage');

    app.use(processImage('public'));

        
    asked by anonymous 12.08.2018 / 12:42

    0 answers