Npm ERR code EINTEGRITY sha512 on npm install on jitsi-meet web

I’m following the steps from: Developer Guide (Web) · Jitsi Meet Handbook
When I run npm install I get:

deel@vm:~/Downloads/client-test/jitsi-meet$ npm install
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 sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated i18next-xhr-backend@3.0.0: replaced by i18next-http-backend
npm WARN deprecated deep-assign@3.0.0: Check out `lodash.merge` or `merge-options` instead.
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @react-native-community/google-signin@3.0.1: please install @react-native-google-signin/google-signin instead
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated uuid@3.1.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated amplitude-js@8.2.1: Excessive logging into console at default levels
npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.5.3: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN tarball tarball data for libflacjs@git+ssh://git@github.com/mmig/libflac.js.git#93d37e7f811f01cf7d8b6a603e38bd3c3810907d (sha512-7cscxyqMkeUa5PpHOqhIkXgyrmPqxCzYobtXnrnwXFkY5+tvRjwsZqQQ52Z9K4AebDzpNaApK+NVn+gK4CwWUw==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for libflacjs@git+ssh://git@github.com/mmig/libflac.js.git#93d37e7f811f01cf7d8b6a603e38bd3c3810907d (sha512-7cscxyqMkeUa5PpHOqhIkXgyrmPqxCzYobtXnrnwXFkY5+tvRjwsZqQQ52Z9K4AebDzpNaApK+NVn+gK4CwWUw==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for lib-jitsi-meet@git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#b337778da8640955572bdb3668aeffd6274e71f9 (sha512-f15i1RqU9p8GBjGN4cjRzFccbgGgiEHI1Ptksd3SLYBogywh4KACFPwZVIM1J6XxNCXx2pq6LJt7y4g4cn65+g==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for react-native@git+ssh://git@github.com/jitsi/react-native.git#891986ec5ecaef65d1c8a7fe472f86cf84fe7551 (sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for react-native@git+ssh://git@github.com/jitsi/react-native.git#891986ec5ecaef65d1c8a7fe472f86cf84fe7551 (sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for lib-jitsi-meet@git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#b337778da8640955572bdb3668aeffd6274e71f9 (sha512-f15i1RqU9p8GBjGN4cjRzFccbgGgiEHI1Ptksd3SLYBogywh4KACFPwZVIM1J6XxNCXx2pq6LJt7y4g4cn65+g==) seems to be corrupted. Trying again.
npm ERR! code EINTEGRITY
npm ERR! sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== integrity checksum failed when using sha512: wanted sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== but got sha512-nqs/YhlFGNuomH620okaM9SAck/Bm/RZfSM2Etl6HCi1zBavOIhlAfLvs6rmOgRrAK5lX8Z/NUbpoVi2eQzXtw==. (26556608 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/deel/.npm/_logs/2021-11-16T12_49_38_744Z-debug.log

Last lines of the debug log ( 6000 lines)

deel@vm:~/Downloads/client-test/jitsi-meet$ npm install
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 sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated i18next-xhr-backend@3.0.0: replaced by i18next-http-backend
npm WARN deprecated deep-assign@3.0.0: Check out `lodash.merge` or `merge-options` instead.
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @react-native-community/google-signin@3.0.1: please install @react-native-google-signin/google-signin instead
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated uuid@3.1.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated amplitude-js@8.2.1: Excessive logging into console at default levels
npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.5.3: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN tarball tarball data for libflacjs@git+ssh://git@github.com/mmig/libflac.js.git#93d37e7f811f01cf7d8b6a603e38bd3c3810907d (sha512-7cscxyqMkeUa5PpHOqhIkXgyrmPqxCzYobtXnrnwXFkY5+tvRjwsZqQQ52Z9K4AebDzpNaApK+NVn+gK4CwWUw==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for libflacjs@git+ssh://git@github.com/mmig/libflac.js.git#93d37e7f811f01cf7d8b6a603e38bd3c3810907d (sha512-7cscxyqMkeUa5PpHOqhIkXgyrmPqxCzYobtXnrnwXFkY5+tvRjwsZqQQ52Z9K4AebDzpNaApK+NVn+gK4CwWUw==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for lib-jitsi-meet@git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#b337778da8640955572bdb3668aeffd6274e71f9 (sha512-f15i1RqU9p8GBjGN4cjRzFccbgGgiEHI1Ptksd3SLYBogywh4KACFPwZVIM1J6XxNCXx2pq6LJt7y4g4cn65+g==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for react-native@git+ssh://git@github.com/jitsi/react-native.git#891986ec5ecaef65d1c8a7fe472f86cf84fe7551 (sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for react-native@git+ssh://git@github.com/jitsi/react-native.git#891986ec5ecaef65d1c8a7fe472f86cf84fe7551 (sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for lib-jitsi-meet@git+ssh://git@github.com/jitsi/lib-jitsi-meet.git#b337778da8640955572bdb3668aeffd6274e71f9 (sha512-f15i1RqU9p8GBjGN4cjRzFccbgGgiEHI1Ptksd3SLYBogywh4KACFPwZVIM1J6XxNCXx2pq6LJt7y4g4cn65+g==) seems to be corrupted. Trying again.
npm ERR! code EINTEGRITY
npm ERR! sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== integrity checksum failed when using sha512: wanted sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== but got sha512-nqs/YhlFGNuomH620okaM9SAck/Bm/RZfSM2Etl6HCi1zBavOIhlAfLvs6rmOgRrAK5lX8Z/NUbpoVi2eQzXtw==. (26556608 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/deel/.npm/_logs/2021-11-16T12_49_38_744Z-debug.log

node version: 16.13.0
npm version 8.1.0

Does someone know what I can do?

Perhaps try with Node 14 and npm 7? I believe that is what is used for the official build.

1 Like

After I deleted package-json.lock npm installed run wihtout problems.
But now I get problems with make:

webpack 5.57.1 compiled successfully in 25096 ms
rm -fr libs
rm: cannot remove 'libs/tflite.wasm': Permission denied
rm: cannot remove 'libs/capabilities.json': Permission denied
rm: cannot remove 'libs/tflite-simd.wasm': Permission denied
rm: cannot remove 'libs/close3.min.js': Permission denied
rm: cannot remove 'libs/flacEncodeWorker.min.js.map': Permission denied
rm: cannot remove 'libs/do_external_connect.min.js.map': Permission denied
rm: cannot remove 'libs/external_api.min.js.map': Permission denied
rm: cannot remove 'libs/libflac4-1.3.2.min.js.mem': Permission denied
rm: cannot remove 'libs/alwaysontop.min.js.map': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.e2ee-worker.js': Permission denied
rm: cannot remove 'libs/segm_full_v679.tflite': Permission denied
rm: cannot remove 'libs/analytics-ga.min.js.map': Permission denied
rm: cannot remove 'libs/dial_in_info_bundle.min.js.map': Permission denied
rm: cannot remove 'libs/flacEncodeWorker.min.js': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.min.map': Permission denied
rm: cannot remove 'libs/external_api.min.js': Permission denied
rm: cannot remove 'libs/dial_in_info_bundle.min.js': Permission denied
rm: cannot remove 'libs/external_connect.js': Permission denied
rm: cannot remove 'libs/rnnoise.wasm': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.min.js': Permission denied
rm: cannot remove 'libs/do_external_connect.min.js': Permission denied
rm: cannot remove 'libs/segm_lite_v681.tflite': Permission denied
rm: cannot remove 'libs/app.bundle.min.js': Permission denied
rm: cannot remove 'libs/app.bundle.min.js.map': Permission denied
rm: cannot remove 'libs/analytics-ga.min.js': Permission denied
rm: cannot remove 'libs/libflac4-1.3.2.min.js': Permission denied
rm: cannot remove 'libs/alwaysontop.min.js': Permission denied
rm: cannot remove 'libs/analytics-ga.js': Permission denied
rm: cannot remove 'libs/olm.wasm': Permission denied
make: *** [Makefile:34: deploy-init] Error 1

I saw some threads that using sudo might break something, so I didn’t use sudo with any command

@shawn’s recommendation above is still relevant - npm 7 and node 14.

1 Like

Check the permissions of those files … and you will understand why you don’t have permissions and how that happen … you used a different account to do previous make.

1 Like

node 14 and npm 7 gives the same errors

npm ERR! code EINTEGRITY
npm ERR! sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== integrity checksum failed when using sha512: wanted sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== but got sha512-nqs/YhlFGNuomH620okaM9SAck/Bm/RZfSM2Etl6HCi1zBavOIhlAfLvs6rmOgRrAK5lX8Z/NUbpoVi2eQzXtw==. (26556608 bytes)

I made the steps from the guide all with the same account.
Anyways, I cannot find any “libs” folder in the jitsi project

When deleting package-lock.json I can again sucessfully run npm install.
but after make I get this output:

webpack 5.57.1 compiled successfully in 31428 ms
rm -fr libs
mkdir -p libs
cp \
	build/app.bundle.min.js \
	build/app.bundle.min.js.map \
	build/do_external_connect.min.js \
	build/do_external_connect.min.js.map \
	build/external_api.min.js \
	build/external_api.min.js.map \
	build/flacEncodeWorker.min.js \
	build/flacEncodeWorker.min.js.map \
	build/dial_in_info_bundle.min.js \
	build/dial_in_info_bundle.min.js.map \
	build/alwaysontop.min.js \
	build/alwaysontop.min.js.map \
	./analytics-ga.js \
	build/analytics-ga.min.js \
	build/analytics-ga.min.js.map \
	libs
cp \
	build/close3.min.js \
	build/close3.min.js.map \
	libs || true
cp: cannot stat 'build/close3.min.js.map': No such file or directory
cp \
	node_modules/rnnoise-wasm/dist//rnnoise.wasm \
	libs
cp \
	react/features/stream-effects/virtual-background/vendor/tflite/*.wasm \
	libs
cp \
	react/features/stream-effects/virtual-background/vendor/models//*.tflite \
	libs
cp \
	node_modules/lib-jitsi-meet//lib-jitsi-meet.min.js \
	node_modules/lib-jitsi-meet//lib-jitsi-meet.min.map \
	node_modules/lib-jitsi-meet//lib-jitsi-meet.e2ee-worker.js \
	node_modules/lib-jitsi-meet//connection_optimization/external_connect.js \
	node_modules/lib-jitsi-meet//modules/browser/capabilities.json \
	libs
cp \
	node_modules/libflacjs/dist/min//libflac4-1.3.2.min.js \
	node_modules/libflacjs/dist/min//libflac4-1.3.2.min.js.mem \
	libs
cp \
	node_modules/@matrix-org/olm/olm.wasm \
	libs
./node_modules/.bin/sass css/main.scss css/all.bundle.css && \
./node_modules/.bin/cleancss --skip-rebase css/all.bundle.css > css/all.css ; \
rm css/all.bundle.css
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
rm -fr build

but now I have a libs folder, where I have all permissions

And the other files are not owned by root:

deel@vm:~/Downloads/jitsi-meet$ ls -al
total 5624
drwxrwxr-x   24 deel deel    4096 Nov 16 18:15 .
drwxr-xr-x    3 deel deel    4096 Nov 16 16:51 ..
-rw-rw-r--    1 deel deel    5927 Nov 16 16:52 analytics-ga.js
drwxrwxr-x    8 deel deel    4096 Nov 16 16:52 android
-rw-rw-r--    1 deel deel    2203 Nov 16 16:52 app.js
-rw-rw-r--    1 deel deel     219 Nov 16 16:52 babel.config.js
-rw-rw-r--    1 deel deel      18 Nov 16 16:52 base.html
-rw-rw-r--    1 deel deel       0 Nov 16 16:52 body.html
-rw-rw-r--    1 deel deel     114 Nov 16 16:52 .buckconfig
-rw-rw-r--    1 deel deel  116049 Nov 16 16:52 conference.js
-rw-rw-r--    1 deel deel   49731 Nov 16 16:52 config.js
-rw-rw-r--    1 deel deel    8792 Nov 16 16:52 connection.js
drwxrwxr-x    2 deel deel    4096 Nov 16 16:52 connection_optimization
-rw-rw-r--    1 deel deel    5971 Nov 16 16:52 CONTRIBUTING.md
drwxrwxr-x   14 deel deel    4096 Nov 16 18:15 css
drwxrwxr-x    4 deel deel    4096 Nov 16 16:52 debian
drwxrwxr-x    4 deel deel    4096 Nov 16 16:52 doc
-rw-rw-r--    1 deel deel     197 Nov 16 16:52 .editorconfig
-rw-rw-r--    1 deel deel       0 Nov 16 16:52 eslint
-rw-rw-r--    1 deel deel     509 Nov 16 16:52 .eslintignore
-rw-rw-r--    1 deel deel      76 Nov 16 16:52 .eslintrc.js
-rw-rw-r--    1 deel deel    3638 Nov 16 16:52 favicon.ico
-rw-rw-r--    1 deel deel    4080 Nov 16 16:52 .flowconfig
drwxrwxr-x    3 deel deel    4096 Nov 16 16:52 flow-typed
drwxrwxr-x    2 deel deel    4096 Nov 16 16:52 fonts
drwxrwxr-x    8 deel deel    4096 Nov 16 16:52 .git
-rw-rw-r--    1 deel deel      70 Nov 16 16:52 .gitattributes
drwxrwxr-x    4 deel deel    4096 Nov 16 16:52 .github
-rw-rw-r--    1 deel deel    1203 Nov 16 16:52 .gitignore
-rw-rw-r--    1 deel deel       0 Nov 16 16:52 head.html
drwxrwxr-x    3 deel deel    4096 Nov 16 16:52 images
-rw-rw-r--    1 deel deel      32 Nov 16 16:52 index.android.js
-rw-rw-r--    1 deel deel    9390 Nov 16 16:52 index.html
-rw-rw-r--    1 deel deel      32 Nov 16 16:52 index.ios.js
-rw-rw-r--    1 deel deel    8762 Nov 16 16:52 interface_config.js
drwxrwxr-x    9 deel deel    4096 Nov 16 16:52 ios
drwxrwxr-x    2 deel deel    4096 Nov 16 16:52 lang
drwxrwxr-x    2 deel deel    4096 Nov 16 18:15 libs
-rw-rw-r--    1 deel deel   12596 Nov 16 16:52 LICENSE
-rw-rw-r--    1 deel deel     950 Nov 16 16:52 logging_config.js
-rw-rw-r--    1 deel deel    3354 Nov 16 16:52 Makefile
-rw-rw-r--    1 deel deel     752 Nov 16 16:52 manifest.json
-rw-rw-r--    1 deel deel     829 Nov 16 16:52 metro.config.js
drwxrwxr-x   10 deel deel    4096 Nov 16 16:52 modules
drwxrwxr-x 1013 deel deel   36864 Nov 16 18:09 node_modules
-rw-rw-r--    1 deel deel      95 Nov 16 16:52 .npmrc
-rw-rw-r--    1 deel deel       3 Nov 16 16:52 .nvmrc
-rw-rw-r--    1 deel deel    6216 Nov 16 16:52 package.json
-rw-rw-r--    1 deel deel 1373815 Nov 16 18:09 package-lock.json
drwxrwxr-x    2 deel deel    4096 Nov 16 16:52 patches
-rw-rw-r--    1 deel deel       0 Nov 16 16:52 plugin.head.html
-rw-rw-r--    1 deel deel    3358 Nov 16 16:52 pwa-worker.js
drwxrwxr-x    3 deel deel    4096 Nov 16 16:52 react
-rw-rw-r--    1 deel deel 3875630 Nov 16 16:52 readme-img1.png
-rw-rw-r--    1 deel deel    3578 Nov 16 16:52 README.md
drwxrwxr-x    7 deel deel    4096 Nov 16 16:52 resources
-rw-rw-r--    1 deel deel     440 Nov 16 16:52 SECURITY.md
drwxrwxr-x    3 deel deel    4096 Nov 16 16:52 service
drwxrwxr-x    2 deel deel    4096 Nov 16 16:52 sounds
drwxrwxr-x    3 deel deel    4096 Nov 16 16:52 static
-rw-rw-r--    1 deel deel     608 Nov 16 16:52 title.html
-rw-rw-r--    1 deel deel     111 Nov 16 16:52 .travis.yml
drwxrwxr-x    5 deel deel    4096 Nov 16 16:52 twa
-rw-rw-r--    1 deel deel       2 Nov 16 16:52 .watchmanconfig
-rw-rw-r--    1 deel deel   13623 Nov 16 16:52 webpack.config.js

If important: I use Ubuntu 20.04.3 LTS

It’s my personal experience with Npm that when you are trying to outwit it, it has already won.
After a few adventures like yours, I have always kept to a bestial strategy:

  • always download a fresh jitsi-meet directory at the slightest sign of strangeness. rm jitsi-meet -rf is my friend. If I have done changes I export them if needed and import on the fresh directory of course.

  • npm install should work then with 8.1 and node 16.3. I just tested it on Ubuntu 20.04,

  • export WEBPACK_DEV_SERVER_PROXY_TARGET=https://mymeet.myserver.com
    make dev
    → if you use a server you don’t control you never know when it’s updated and you have the risk to get something not compatible without you being aware that it’s not your fault. You have to update regularly the test server and rebase your dev directory of course, but you can do it in sync and it’s under your control.

  • never run anything as root, always with an user account and always the same. Actually I have never done that, but I suspect that’s what you did at some point. Did you do some fancy update npm and node as root ? big mistake (unless you use a PPA, something that is itself always a mistake in the long run). If you must upgrade npm and nodes, something that is sadly necessary on the latest and greatest LTS version of the most used distro, use your own account. I have found nvm an interesting proposition.

1 Like

Maybe I did something as root in regard of npm or node in the past, but I already deinstalled npm and node now 2 times, or is deinstallation not enough when I installed it one time as root ?

To the part about make dev,
It would be enough for me to run make without dev without errors

You had to check any of these files, and clear those with wrong permission.

1 Like

This are the permissions for the file you mentioned:

jitsi meet dir
drwxrwxr-x    2 deel deel    4096 Nov 16 20:53 libs

libs dir

-rw-rw-r--  1 deel deel    18535 Nov 16 18:15 lib-jitsi-meet.e2ee-worker.js

From my perspective the permission are right?

rename your jitsi-meet directory if you are afraid of losing something and get a fresh copy from github.

1 Like

I changed nothing in the source code, I have fetched a fresh copy already several times

Ah, I see. I did not look closely at your last trace and stayed at the first. So everything works now ! Congratulations :wink: !
Sorry, I am so accustomed to run ‘make dev’ that I had forgotten that make by itself deletes everything when it finishes and got misled by the first problem, the rights.
But it’s fixed indeed now, so just forget about ‘make’ and use ‘make compile deploy’ (‘make’ by itself does the same thing but follows-up by ‘make clean’) or use ‘make dev’ and kill it with Ctrl C when you are satisfied that it works.

1 Like

It does not work :sweat:
To summarize the content of the previous post:
I have nodejs v 14.18.1 and npm 7.24.2 installed
I follow the steps from:

1. git clone https://github.com/jitsi/jitsi-meet
2. cd ./jitsi-meet
3. npm install

On npm install I get the first error: (see first post)

npm ERR! sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== integrity checksum failed when using sha512: wanted sha512-VYzZHHsE6JV0igL/UV6i52yNiiWPkHdJIIQmUvKafLs2Np02vMlV05fYtlP6F/tF+BGn/lwZtDIc3VAIv+CxSA== but got sha512-nqs/YhlFGNuomH620okaM9SAck/Bm/RZfSM2Etl6HCi1zBavOIhlAfLvs6rmOgRrAK5lX8Z/NUbpoVi2eQzXtw==. (26556608 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/deel/.npm/_logs/2021-11-16T12_49_38_744Z-debug.log

I was able to move forward after I deleted package-lock.json.

After this I was able to run npm install without errors.
When I do run make I get the errors from my second post

webpack 5.57.1 compiled successfully in 25096 ms
rm -fr libs
rm: cannot remove 'libs/tflite.wasm': Permission denied
rm: cannot remove 'libs/capabilities.json': Permission denied
rm: cannot remove 'libs/tflite-simd.wasm': Permission denied
rm: cannot remove 'libs/close3.min.js': Permission denied
rm: cannot remove 'libs/flacEncodeWorker.min.js.map': Permission denied
rm: cannot remove 'libs/do_external_connect.min.js.map': Permission denied
rm: cannot remove 'libs/external_api.min.js.map': Permission denied
rm: cannot remove 'libs/libflac4-1.3.2.min.js.mem': Permission denied
rm: cannot remove 'libs/alwaysontop.min.js.map': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.e2ee-worker.js': Permission denied
rm: cannot remove 'libs/segm_full_v679.tflite': Permission denied
rm: cannot remove 'libs/analytics-ga.min.js.map': Permission denied
rm: cannot remove 'libs/dial_in_info_bundle.min.js.map': Permission denied
rm: cannot remove 'libs/flacEncodeWorker.min.js': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.min.map': Permission denied
rm: cannot remove 'libs/external_api.min.js': Permission denied
rm: cannot remove 'libs/dial_in_info_bundle.min.js': Permission denied
rm: cannot remove 'libs/external_connect.js': Permission denied
rm: cannot remove 'libs/rnnoise.wasm': Permission denied
rm: cannot remove 'libs/lib-jitsi-meet.min.js': Permission denied
rm: cannot remove 'libs/do_external_connect.min.js': Permission denied
rm: cannot remove 'libs/segm_lite_v681.tflite': Permission denied
rm: cannot remove 'libs/app.bundle.min.js': Permission denied
rm: cannot remove 'libs/app.bundle.min.js.map': Permission denied
rm: cannot remove 'libs/analytics-ga.min.js': Permission denied
rm: cannot remove 'libs/libflac4-1.3.2.min.js': Permission denied
rm: cannot remove 'libs/alwaysontop.min.js': Permission denied
rm: cannot remove 'libs/analytics-ga.js': Permission denied
rm: cannot remove 'libs/olm.wasm': Permission denied
make: *** [Makefile:34: deploy-init] Error 1

I checked the libs folder ( which was only created after the “sucessfull” run of npm install where I had to delete package-lock.json

and after my knowledge I have the correct permissions

All this sounds very strange. Your description leads to think that the first make creates the files under libs and then fails to delete them. Did you verify before this first make that the libs subdirectory did not exist ?

Edit: before going to sleep; my last advice is to start again in a VM for a clean install of Ubuntu 20.04, install npm using nvm, and try again the git clone, npm install. There must be somethihg very wrong in your system.

1 Like

After an npm install in a fresh version I have following content:

deel@vm:~/Downloads/last resort/jitsi-meet$ ls -al
total 5628
drwxrwxr-x 22 deel deel    4096 Nov 17 10:22 .
drwxrwxr-x  3 deel deel    4096 Nov 17 10:15 ..
-rw-rw-r--  1 deel deel    5927 Nov 17 10:16 analytics-ga.js
drwxrwxr-x  8 deel deel    4096 Nov 17 10:16 android
-rw-rw-r--  1 deel deel    2203 Nov 17 10:16 app.js
-rw-rw-r--  1 deel deel     219 Nov 17 10:16 babel.config.js
-rw-rw-r--  1 deel deel      18 Nov 17 10:16 base.html
-rw-rw-r--  1 deel deel       0 Nov 17 10:16 body.html
-rw-rw-r--  1 deel deel     114 Nov 17 10:16 .buckconfig
-rw-rw-r--  1 deel deel  116049 Nov 17 10:16 conference.js
-rw-rw-r--  1 deel deel   49731 Nov 17 10:16 config.js
-rw-rw-r--  1 deel deel    8792 Nov 17 10:16 connection.js
drwxrwxr-x  2 deel deel    4096 Nov 17 10:16 connection_optimization
-rw-rw-r--  1 deel deel    5971 Nov 17 10:16 CONTRIBUTING.md
drwxrwxr-x 14 deel deel    4096 Nov 17 10:16 css
drwxrwxr-x  4 deel deel    4096 Nov 17 10:16 debian
drwxrwxr-x  4 deel deel    4096 Nov 17 10:16 doc
-rw-rw-r--  1 deel deel     197 Nov 17 10:16 .editorconfig
-rw-rw-r--  1 deel deel       0 Nov 17 10:16 eslint
-rw-rw-r--  1 deel deel     509 Nov 17 10:16 .eslintignore
-rw-rw-r--  1 deel deel      76 Nov 17 10:16 .eslintrc.js
-rw-rw-r--  1 deel deel    3638 Nov 17 10:16 favicon.ico
-rw-rw-r--  1 deel deel    4080 Nov 17 10:16 .flowconfig
drwxrwxr-x  3 deel deel    4096 Nov 17 10:16 flow-typed
drwxrwxr-x  2 deel deel    4096 Nov 17 10:16 fonts
drwxrwxr-x  8 deel deel    4096 Nov 17 10:16 .git
-rw-rw-r--  1 deel deel      70 Nov 17 10:16 .gitattributes
drwxrwxr-x  4 deel deel    4096 Nov 17 10:16 .github
-rw-rw-r--  1 deel deel    1203 Nov 17 10:16 .gitignore
-rw-rw-r--  1 deel deel       0 Nov 17 10:16 head.html
drwxrwxr-x  3 deel deel    4096 Nov 17 10:16 images
-rw-rw-r--  1 deel deel      32 Nov 17 10:16 index.android.js
-rw-rw-r--  1 deel deel    9390 Nov 17 10:16 index.html
-rw-rw-r--  1 deel deel      32 Nov 17 10:16 index.ios.js
-rw-rw-r--  1 deel deel    8762 Nov 17 10:16 interface_config.js
drwxrwxr-x  9 deel deel    4096 Nov 17 10:16 ios
drwxrwxr-x  2 deel deel    4096 Nov 17 10:16 lang
-rw-rw-r--  1 deel deel   12596 Nov 17 10:16 LICENSE
-rw-rw-r--  1 deel deel     950 Nov 17 10:16 logging_config.js
-rw-rw-r--  1 deel deel    3354 Nov 17 10:16 Makefile
-rw-rw-r--  1 deel deel     752 Nov 17 10:16 manifest.json
-rw-rw-r--  1 deel deel     829 Nov 17 10:16 metro.config.js
drwxrwxr-x 10 deel deel    4096 Nov 17 10:16 modules
-rw-rw-r--  1 deel deel      95 Nov 17 10:16 .npmrc
-rw-rw-r--  1 deel deel       3 Nov 17 10:16 .nvmrc
-rw-rw-r--  1 deel deel    6216 Nov 17 10:16 package.json
-rw-rw-r--  1 deel deel 1422905 Nov 17 10:16 package-lock.json
drwxrwxr-x  2 deel deel    4096 Nov 17 10:16 patches
-rw-rw-r--  1 deel deel       0 Nov 17 10:16 plugin.head.html
-rw-rw-r--  1 deel deel    3358 Nov 17 10:16 pwa-worker.js
drwxrwxr-x  3 deel deel    4096 Nov 17 10:16 react
-rw-rw-r--  1 deel deel 3875630 Nov 17 10:16 readme-img1.png
-rw-rw-r--  1 deel deel    3578 Nov 17 10:16 README.md
drwxrwxr-x  7 deel deel    4096 Nov 17 10:16 resources
-rw-rw-r--  1 deel deel     440 Nov 17 10:16 SECURITY.md
drwxrwxr-x  3 deel deel    4096 Nov 17 10:16 service
drwxrwxr-x  2 deel deel    4096 Nov 17 10:16 sounds
drwxrwxr-x  3 deel deel    4096 Nov 17 10:16 static
-rw-rw-r--  1 deel deel     608 Nov 17 10:16 title.html
-rw-rw-r--  1 deel deel     111 Nov 17 10:16 .travis.yml
drwxrwxr-x  5 deel deel    4096 Nov 17 10:16 twa
-rw-rw-r--  1 deel deel       2 Nov 17 10:16 .watchmanconfig
-rw-rw-r--  1 deel deel   13623 Nov 17 10:16 webpack.config.js

so no libs folder. I starting over now with nvm. But seems a bit strange: When I install Nodejs with version 14, npm version 6 gets installed and I have to manually only update to version 6

Yes I have seen this as well, my guess is that npm 6 goes with the LTS Node.js 14, so I installed Node.js 16.

1 Like

a fresh ubuntu install and installation with nvm gives me the same error as in the first post.
I also installed not WSL2 on my windows machine, but same error on npm install

Update: I installed Linux Mint on a separate Partition (native) and I get the same behaviour and error types like in my virtual machine.