Npm on jitsi (opt/jitsi-meet) give me error


#1

Hi Jitsi team,

I downloaded in /opt/jitsi-meet the latest master release from git, and when i do npm install, i get that error :

Killed
root@obi1com-server-3vcpu-1gb-lon1-01:/opt/jitsi-meet# Hash: 910f02aa041785d23013
Version: webpack 4.26.1
Child
Hash: 910f02aa041785d23013
Time: 27692ms
Built at: 02/12/2019 1:50:43 PM
Asset Size Chunks Chunk Names
lib-jitsi-meet.min.js 685 KiB 0 [emitted] [big] lib-jitsi-meet
lib-jitsi-meet.min.map 2.61 MiB 0 [emitted] lib-jitsi-meet
Entrypoint lib-jitsi-meet [big] = lib-jitsi-meet.min.js lib-jitsi-meet.min.map
[2] ./JitsiConferenceEvents.js 8.21 KiB {0} [built]
[3] ./modules/browser/index.js 98 bytes {0} [built]
[4] …/jitsi-meet-logger/lib/index.js 3.6 KiB {0} [built]
[6] ./modules/statistics/statistics.js 28.1 KiB {0} [built]
[7] ./service/statistics/AnalyticsEvents.js 15 KiB {0} [built]
[9] ./service/RTC/MediaType.js 110 bytes {0} [built]
[10] ./modules/util/GlobalOnErrorHandler.js 2.37 KiB {0} [built]
[12] ./JitsiTrackErrors.js 2.68 KiB {0} [built]
[13] ./modules/RTC/RTC.js 34.3 KiB {0} [built]
[15] ./JitsiTrackError.js 6.07 KiB {0} [built]
[17] ./JitsiTrackEvents.js 1.31 KiB {0} [built]
[20] ./modules/videosipgw/VideoSIPGWConstants.js 1.44 KiB {0} [built]
[21] ./JitsiConferenceErrors.js 2.12 KiB {0} [built]
[121] ./index.js 160 bytes {0} [built]
[122] ./JitsiMeetJS.js 19.4 KiB {0} [built]
+ 141 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  lib-jitsi-meet.min.js (685 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  lib-jitsi-meet (685 KiB)
      lib-jitsi-meet.min.js


WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

Any idea ?

Thanks for your support


#2

These are warnings, so just ignore them.

This error is not really helpful what happened. Do you have enough RAM on the machine?


#3

I have just 1GB Ram on that server (for test).
Do you think i have to takes another server with 2GB minimum ?


#4

I would say 4, but you can try with 2 … Not sure that this is the problem, but if this is the only error you see, it is possible. I had problems on 1GB of RAM.


#5

Thanks! I will do the test on another server with 4GB :slight_smile:


#6

Just to let you know damencho : did the test on a fresh and new 4GB server. Same message when doing npm install on the last release of Jitsi Meet master (by github):

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  lib-jitsi-meet.min.js (685 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  lib-jitsi-meet (685 KiB)
      lib-jitsi-meet.min.js


WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

As you said, it is just a warning message. The “make” process succeed, so no problems :slight_smile:
But this is the first time that I see that message.

Maybe because my npm version ? I used the very last one (version 11)

Did you recommend a specific npm version for Jitsi Meet ? Or it is better to always takes the very last one as I did ?


#7

Yes, the warnings started appearing after webpack upgrade.