Error when running Strapi on a cPanel NodeJS application

System Information
  • Strapi Version: 4.4.6:
  • OS: CloudLinux release 7.9 (Boris Yegorov):
  • DB: MySQL:
  • Node version: 14.20.1:
  • NPM version: 6.14.17:
  • yarn version: v1.22.19:

Hi everyone,

I’m currently trying to deploy my strapi application with MySQL on a NodeJS instance in a cPanel of a Shared Hosting (not the greatest option, but that’s what I must use).

I have successfully installed all the dependencies with the yarn command and now I’m trying to run the application with yarn run develop, but I’m getting the following error:

RangeError: WebAssembly.Instance(): Out of memory: wasm memory
    at create (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/util/hash/wasm-hash.js:154:4)
    at module.exports (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/util/createHash.js:160:27)
    at /home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/DefinePlugin.js:289:22
    at Hook.eval [as call] (eval at create (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/tapable/lib/HookCodeFactory.js:1:1), <anonymous>:194:1)
    at Hook.CALL_DELEGATE [as _call] (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/Compiler.js:1122:26)
    at /home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/Compiler.js:1166:29
    at Hook.eval [as callAsync] (eval at create (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/tapable/lib/HookCodeFactory.js:1:1), <anonymous>:22:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/tapable/lib/Hook.js:18:14)
    at Compiler.compile (/home/animecli/nodevenv/vg-test.animeclick.it/g/vg-back/14/lib/node_modules/webpack/lib/Compiler.js:1161:28)
error Command failed with exit code 1.

Does anyone know how to solve the issue and correctly run the strapi application?
Do let me know if any other detail is necessary to solve the issue.

Thanks in advance,
Stefano.