pbugnion / jupyterlab-sql

SQL GUI for JupyterLab
MIT License
417 stars 52 forks source link

couldn't install jupyterlab-sql #145

Closed YousefSaber closed 4 years ago

YousefSaber commented 4 years ago

couldn't install Jupyterlab-sql on my 20.04 Ubuntu machine

joseph@joseph-X541UJ:~$ sudo jupyter lab build
[LabBuildApp] JupyterLab 2.1.1
[LabBuildApp] Building in /usr/local/share/jupyter/lab
Build failed.
Troubleshooting: If the build failed due to an out-of-memory error, you
may be able to fix it by disabling the `dev_build` and/or `minimize` options.

If you are building via the `jupyter lab build` command, you can disable
these options like so:

jupyter lab build --dev-build=False --minimize=False

You can also disable these options for all JupyterLab builds by adding these
lines to a Jupyter config file named `jupyter_config.py`:

c.LabBuildApp.minimize = False
c.LabBuildApp.dev_build = False

If you don't already have a `jupyter_config.py` file, you can create one by
adding a blank file of that name to any of the Jupyter config directories.
The config directories can be listed by running:

jupyter --paths

Explanation:

- `dev-build`: This option controls whether a `dev` or a more streamlined
`production` build is used. This option will default to `False` (ie the
`production` build) for most users. However, if you have any labextensions
installed from local files, this option will instead default to `True`.
Explicitly setting `dev-build` to `False` will ensure that the `production`
build is used in all circumstances.

- `minimize`: This option controls whether your JS bundle is minified
during the Webpack build, which helps to improve JupyterLab's overall
performance. However, the minifier plugin used by Webpack is very memory
intensive, so turning it off may help the build finish successfully in
low-memory environments.

An error occured.
ValueError: Please install Node.js and npm before continuing installation. You may be able to install Node.js from your package manager, from conda, or directly from the Node.js website (https://nodejs.org).
See the log file for details:  /tmp/jupyterlab-debug-k7ebwukl.log
joseph@joseph-X541UJ:~$ node --version
v12.18.3

the error say that I need to install nodejs on my machine but it's already installed.

YousefSaber commented 4 years ago

sorry I should have installed nodejs instead of node

joseph@joseph-X541UJ:~$ sudo apt install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version (10.19.0~dfsg-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.