jwkvam / jupyterlab-vim

:neckbeard: Vim notebook cell bindings for JupyterLab
MIT License
966 stars 73 forks source link

Can't uninstall without installing nodejs #129

Open Pastells opened 3 years ago

Pastells commented 3 years ago

I'm trying to uninstall with jupyter labextension uninstall jupyterlab_vim and gives me:

An error occured.
ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
See the log file for details:  /tmp/jupyterlab-debug-_d1n2xvw.log

I don't get why I need to install (or update) something in order to uninstall the extension.

The content in the log file is:

Traceback (most recent call last):

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/commands.py", line 1890, in _node_check
    output = subprocess.check_output([node, 'node-version-check.js'], cwd=HERE)

  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['/usr/bin/node', 'node-version-check.js']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 128, in start
    ans = self.run_task()

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 332, in run_task
    return any([

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 333, in <listcomp>
    uninstall_extension(

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/commands.py", line 407, in uninstall_extension
    _node_check(app_options.logger)

  File "/home/pol/.local/lib/python3.8/site-packages/jupyterlab/commands.py", line 1896, in _node_check
    raise ValueError(msg)

ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.

Exiting application: lab