Allow install to use node in PATH
See original GitHub issueI’m getting an error when installing because it’s trying to use the node
executable in my conda directory instead of the one on my PATH. I didn’t install node from Conda, so I’m assuming that’s a dependency of some other program.
The node from Conda is a lower version:
> ~/local/anaconda3/bin/node --version
v6.11.2
The node on my PATH is a higher version:
> node --version
v10.13.0
Especially when the error message says that node can be downloaded manually, I think the install should check if the node on the PATH is of a sufficiently high version.
Full install traceback:
> jupyter labextension install @jupyterlab/latex --debug
Searching ['/disk/agedisk3/medicare.work/doyle-DUA51929/barronk-dua51929/medicare-modernization/harmonization/code', '/disk/homedirs/barronk-dua51929/.jupyter', '/homes/nber/barronk-dua51929/local/anaconda3/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /homes/nber/barronk-dua51929/local/anaconda3/etc/jupyter
Looking for jupyter_config in /disk/homedirs/barronk-dua51929/.jupyter
Looking for jupyter_config in /disk/agedisk3/medicare.work/doyle-DUA51929/barronk-dua51929/medicare-modernization/harmonization/code
Traceback (most recent call last):
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/commands.py", line 1483, in _node_check
output = subprocess.check_output([node, 'node-version-check.js'], cwd=HERE)
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/homes/nber/barronk-dua51929/local/anaconda3/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 "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 77, in start
ans = self.run_task()
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 106, in run_task
for arg in self.extra_args
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 106, in <listcomp>
for arg in self.extra_args
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/commands.py", line 217, in install_extension
_node_check(logger)
File "/homes/nber/barronk-dua51929/local/anaconda3/lib/python3.6/site-packages/jupyterlab/commands.py", line 1489, in _node_check
raise ValueError(msg)
ValueError: Please install nodejs >=6.11.5 before continuing. nodejs may be installed using conda or directly from the nodejs website.
Errored, use --debug for full output:
ValueError: Please install nodejs >=6.11.5 before continuing. nodejs may be installed using conda or directly from the nodejs website
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to install NodeJS LTS on Windows as a local user ...
Download the LTS node.exe binary for Windows and copy it to <NODE_PATH> . · Add <NODE_PATH> to your PATH environment variable ( set...
Read more >Node.js - Environment Setup - Tutorialspoint
Use the MSI file and follow the prompts to install the Node.js. By default, the installer uses the Node.js distribution in C:\Program Files\nodejs....
Read more >How to Set Up Windows for Node.js Development with NVM
Unzip the folder's contents and run nvm-setup.exe . You'll be prompted to agree with the project's terms of use (currently it's the MIT...
Read more >Setting up Node.js on Windows 10 - RisingStack Engineering
First, let's install Git. Use the default settings; they are quite sensible. I usually have a Projects folder in my home directory.
Read more >How to use Node and NPM without installation or admin rights
We need add the node.exe and npm. · Now append the path C:\Tools\nodejs; to PATH variable in Environment Variables.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As of #171, the “prebuilt” distribution mechanism is preferred, which does not require
nodejs
.Sure, please do. I think there are some prior issues regarding which environment the
jupyter
command uses (and I’m not entirely sure what the correct behavior is in this case), but I am unable to find them at the moment.