Make command does not work (Error when building)

Hello,
I have cloned the latest release of Jitsi Meet [2.0.6173],
When I run the make command, I get this error, (I’ve tried this with different Nodejs & Npm versions on ubuntu 20.04 but nothing seems to works)
I don’t know what’s wrong, I have searched for a solution to the same problem on the internet, I can’t find anything helpful, can you help me please ?

npm install --prefix resources/load-test && npm run build --prefix resources/load-test
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.0.1: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

added 774 packages, and audited 775 packages in 2m

29 packages are looking for funding
  run `npm fund` for details

9 vulnerabilities (2 low, 7 moderate)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> jitsi-meet-load-test@0.0.0 build
> webpack -p

/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js:93
                                throw err;
                                ^

Error: Cannot find module '@babel/preset-react'
Require stack:
- /root/project-meet/web/resources/load-test/webpack.config.js
- /root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js
- /root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js
- /root/project-meet/web/resources/load-test/node_modules/webpack/bin/webpack.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.resolve (/root/project-meet/web/resources/load-test/node_modules/v8-compile-cache/v8-compile-cache.js:166:23)
    at Object.<anonymous> (/root/project-meet/web/resources/load-test/webpack.config.js:70:29)
    at Module._compile (/root/project-meet/web/resources/load-test/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (/root/project-meet/web/resources/load-test/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at WEBPACK_OPTIONS (/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13)
    at requireConfig (/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6)
    at /root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17
    at Array.forEach (<anonymous>)
    at module.exports (/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15)
    at /root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js:71:45
    at Object.parse (/root/project-meet/web/resources/load-test/node_modules/yargs/yargs.js:567:18)
    at /root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js:49:8
    at Object.<anonymous> (/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js:366:3)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/root/project-meet/web/resources/load-test/node_modules/webpack/bin/webpack.js:156:2)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/root/project-meet/web/resources/load-test/webpack.config.js',
    '/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/utils/convert-argv.js',
    '/root/project-meet/web/resources/load-test/node_modules/webpack-cli/bin/cli.js',
    '/root/project-meet/web/resources/load-test/node_modules/webpack/bin/webpack.js'
  ]
}
make: *** [Makefile:25: compile-load-test] Error 1

Did you run npm install before running make?

Perhaps this post might help:

1 Like

Thanks I fixed it by running :
npm update --legacy-peer-deps

Had the same issue, fixed it by errk01’s hint in this thread :slight_smile: