Imagemagick problem?


  • hey Everyone,

    i have this problem atm when uploading any sort of image

    Error: Cannot find module 'node-imagemagick'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at uploadUserPicture (/home/alpha22/fangnode/nodebb/src/routes/user.js:158:13)
    at /home/alpha22/fangnode/nodebb/src/routes/user.js:124:7
    at /home/alpha22/fangnode/nodebb/src/database/mongo.js:298:4
    at /home/alpha22/fangnode/nodebb/src/database/mongo.js:331:4
    at /home/alpha22/fangnode/nodebb/node_modules/mongodb/lib/mongodb/collection/query.js:147:5
    at Cursor.nextObject (/home/alpha22/fangnode/nodebb/node_modules/mongodb/lib/mongodb/cursor.js:733:5)
    error: Forever detected script exited with code: 8
    error: Forever restarting script for 3 time

    Any ideas 🙂 ?

  • Admin Staff

    Did you install imagemagick? apt-get install imagemagick


  • @baris Yes i have installed this thats the annoying thing 😛

  • GNU/Linux Admin

    Looks like the actual package is not installed... Can you try running npm i node-imagemagick?


  • @julian #legend 😛 Works perfectly now 😄

  • GNU/Linux Admin

    @xCausxn Hm, very weird! It should've been installed right at the beginning. Will have to look into this. It should be present in package.json from the start...

Suggested Topics

  • 12
  • 1
  • 4
  • 3
  • 4
| |