On 8/13/20 10:39 AM, Uwe Brauer wrote:
    > Hi Uwe,
    > On Thu, Aug 13, 2020, 10:11 Uwe Brauer <o...@mat.ucm.es> wrote:


    > It seems this is version dependent. The nodejs package on later versions
    > indeed provides both node and nodejs.

    > I don't know if there is a non-manual way in ubuntu 16.04 to get the node
    > program. I couldn't directly find it. I guess the manual link should work
    > too.


We can improve the documentation to say something like

Prepare front-end files
^^^^^^^^^^^^^^^^^^^^^^^

Finally, the front-end files must be prepared. This requires ``npm`` version 6 or later, which needs ``node.js`` (version 12 or later) available as ``node``.
Prepare the front-end by running::

    kallithea-cli front-end-build

This will invoke ``npm`` to install some tools, which then are invoked with ``node``. Installation of these dependencies varies between operating systems
and distributions.

but I don't know if we should go into details on how to do it on each OS.

Googling for "ubuntu /usr/bin/env: ‘node’: No such file or directory" gives some helpful answers - including https://askubuntu.com/a/1053068


I tried this. Unfortunately I obtain a different error.

,----
|
|    at Object.Module._extensions..js (module.js:417:10)
| Traceback (most recent call last):
|   File "/usr/local/bin/kallithea-cli", line 10, in <module>
|     sys.exit(cli())
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in 
__call__
|     return self.main(*args, **kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in 
main
|     rv = self.invoke(ctx)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in 
invoke
|     return _process_result(sub_ctx.command.invoke(sub_ctx))
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in 
invoke
|     return ctx.invoke(self.callback, **ctx.params)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in 
invoke
|     return callback(*args, **kwargs)
|   File 
"/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
 line 97, in front_end_build
|     cwd=front_end_dir, shell=kallithea.is_windows)
|   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
|     raise CalledProcessError(retcode, cmd)
|
| subprocess.CalledProcessError: Command
| 
'['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/license-checker',
| '--json', '--out',
| 
'/usr/local/lib/python2.7/dist-packages/kallithea/front-end/tmp/licensing.json']'
| returned non-zero exit status 1
`----


This stacktrace shows Python catching that license-checker failed. Was there any output before this, after "Generating LICENSES.txt"?

I guess this perhaps could be caused by partial installation from previous attempts. Try to delete kallithea/front-end/node_modules/ and try again.

/Mads


_______________________________________________
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to