ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

C:\Users\Windows User>jupyter notebook
[I 14:22:01.155 NotebookApp] JupyterLab beta preview extension loaded from C:\Anaconda3\lib\site-packages\jupyterlab
[I 14:22:01.155 NotebookApp] JupyterLab application directory is C:\Anaconda3\share\jupyter\lab
[W 14:22:01.195 NotebookApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
      File "C:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 321, in __init__
        self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 1165, in _run
        proc = Process(cmd, **kwargs)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\process.py", line 73, in __init__
        self.proc = self._create_process(cwd=cwd, env=env)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
        cmd[0] = which(cmd[0], kwargs.get('env'))
      File "C:\Anaconda3\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in which
        raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
        func(self)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
        info = get_app_info(app_dir)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
        handler = _AppHandler(app_dir, logger)
      File "C:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 324, in __init__
        raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
[I 14:22:01.366 NotebookApp] Ser

Robin_TY - PhD@CSU,研究方向:计算机视觉,模式识别

赞同来自: 张妍

建议将anaconda卸载干净后重装一次。

daofeng

赞同来自: 皇天巍峨

试试
conda install nodejs

welcc

赞同来自: 张妍

猜一下,你应该是安装了最新版吧, 前一段,我也遇到了这个问题,查找资料后顺利解决,方法如下: 到https://nodejs.org/en/,下载安装nodejs选择LTS版本,一路next。 安装完成后重新运行jupyter notebook ,错误消失,一切正常。

要回复问题请先登录注册