22

I open the terminal.

jupyter labextension install @jupyterlab/github

An error occured.
ValueError: Please install nodejs >=10.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
See the log file for details

Yet:

node -v

v14.5.0

What's going on, and how do I make conda find my node?

Her0Her0
  • 486
  • 1
  • 4
  • 12

4 Answers4

38

I had a similar problem and it was solved after I installed the full package:

To install this package with conda run one of the following:

conda install -c conda-forge nodejs
conda install -c conda-forge/label/gcc7 nodejs
conda install -c conda-forge/label/cf201901 nodejs
conda install -c conda-forge/label/cf202003 nodejs
bbrame
  • 18,031
  • 10
  • 35
  • 52
Thomas Pugnat
  • 420
  • 4
  • 2
  • Full package? As in you ran one of those installs or all? I ran the first line `conda install -c conda-forge nodejs` successfully, but it still doesn't budge. – CRich Jul 20 '21 at 22:51
  • 1
    NOTE: The documentation at 'full package' mentioned above , says "To install this package with conda run ONE of the following". – ThomasAJ Aug 05 '21 at 07:02
  • does't this just installs nodejs four times from different sources, remove each time the one installed with the previous command? If you run these four, it's the same as just running the last line – glS Sep 23 '21 at 10:55
  • 2
    This installs different versions of node.js. I found that the last line installs the latest version available via conda. v12.4.0 – Colin Sorensen Jan 21 '22 at 01:02
  • This answer solves my problem with installing extensions (Many thanks!). Installing just the top line isn't sufficient. – Shan Dou Jan 25 '22 at 18:29
  • 1
    Thanks! Only the last line worked for some reason. – Bruno Ruas De Pinho Jan 31 '22 at 18:49
8

I had the same problem. The problem was I installed nodejs both with my conda package manager and in my system. I removed one of them (the conda nodejs package) and the problem was solved.

d4riush
  • 370
  • 3
  • 8
0

In my case, the problem was solved by installing it from the jupyter's terminal instead of firing off command from within the notebook.

Neil
  • 7,482
  • 6
  • 50
  • 56
0

run this command inside Jupiter terminal "conda install -c conda-forge/label/cf202003 nodejs"

Sid
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 08 '22 at 11:46