• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Unable to upload images/files

Scheduled Pinned Locked Moved Solved Bug Reports
4 Posts 2 Posters 62 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saikarthikp9
    wrote last edited by
    #1

    Error log on the Forum UI:

    ![yqqpsok1x9vvywpsowj4.jpg](
    Something went wrong installing the "sharp" module
    
    Cannot find module '../build/Release/sharp-linux-x64.node'
    Require stack:
    - /run/nodebb/node_modules/sharp/lib/sharp.js
    - /run/nodebb/node_modules/sharp/lib/constructor.js
    - /run/nodebb/node_modules/sharp/lib/index.js
    - /app/code/src/image.js
    - /app/code/src/posts/uploads.js
    - /app/code/src/posts/index.js
    - /app/code/src/plugins/index.js
    - /app/code/src/groups/index.js
    - /app/code/src/user/index.js
    - /app/code/src/events.js
    - /app/code/src/meta/themes.js
    - /app/code/src/meta/index.js
    - /app/code/src/start.js
    - /app/code/require-main.js
    - /app/code/app.js
    
    Possible solutions:
    - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
    - Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
    - Consult the installation documentation: https://sharp.pixelplumbing.com/install) 
    
    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote last edited by
    #2

    Looks like sharp isn't properly installed on your system. What is your OS/nodejs/npm version?

    S 1 Reply Last reply
    0
  • S Offline
    S Offline
    saikarthikp9
    replied to <baris> last edited by
    #3

    @baris
    OS: Ubuntu 22.04.3
    NodeJS: v18.18.0
    npm: 9.8.1

    I am hosted on Contabo using Cloudron.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    saikarthikp9
    wrote last edited by saikarthikp9
    #4

    @baris, nevermind, I just had to restart the app on Cloudron, not sure why.

    1 Reply Last reply
    0
  • S saikarthikp9 has marked this topic as solved

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development