Error compiling javascript and assets on startup (Installation)

when starting Indico, you need to run the following command

./bin/maintenance/ indico --dev --watch

as you can see, i get an error when running this

Python version 2.7.5

Any ideas please?

(env) [indico@centos src]$ ./bin/maintenance/ indico --dev --watch
Traceback (most recent call last):
  File "./bin/maintenance/", line 270, in <module>
  File "/home/indico/dev/indico/env/lib/python2.7/site-packages/click/", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/indico/dev/indico/env/lib/python2.7/site-packages/click/", line 717, in main
    rv = self.invoke(ctx)
  File "/home/indico/dev/indico/env/lib/python2.7/site-packages/click/", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/indico/dev/indico/env/lib/python2.7/site-packages/click/", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/indico/dev/indico/env/lib/python2.7/site-packages/click/", line 555, in invoke
    return callback(*args, **kwargs)
  File "./bin/maintenance/", line 180, in build_indico
    subprocess.check_call(['npx', 'webpack'] + args)
  File "/usr/lib64/python2.7/", line 537, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python2.7/", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Make sure you have a recent version of node and npm installed on your system. In that case, npx should be available in your $PATH. The error you are getting indicates that it’s not available at the moment.


Ok - checked and reinstalled node and num, also added npx to path, now getting further error on rerun of code

(env) [indico@centos src]$ pwd


(env) [indico@centos src]$ export PATH=/usr/bin/npx:$PATH

(env) [indico@centos src]$ echo $PATH


(env) [indico@centos src]$ ./bin/maintenance/ indico --dev --watch

Object.entries is not a function

Error: running webpack failed

(env) [indico@centos src]$

Sounds like you have a very old node version, possibly the one that’s in your distribution’s package manager.

Please see on how to install a recent version from the official node repos.

ok - will try that and try to rerun - thanks - will let you know how i get on…