jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.46k stars 318 forks source link

upgrade jupyterlab-git prevents jupyter lab build #731

Closed yuliaUU closed 4 years ago

yuliaUU commented 4 years ago

Description

I am unable to run build command with installed jupyterlab-git:

  1. I want to add Jupytext Python package and the JupyterLab git extension to facilitate using Jupyter notebooks with Git & GitHub. I Install them via the following commands:
    
    pip install --upgrade jupyterlab-git
    conda install -y jupytext=1.*
    jupyter lab build```
[LabBuildApp] JupyterLab 2.2.5
[LabBuildApp] Building in C:\ProgramData\Miniconda3\share\jupyter\lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
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.
RuntimeError: JupyterLab failed to build
See the log file for details:  C:\Users\egoro\AppData\Local\Temp\jupyterlab-debug-yy1cn6dp.log
  1. But I then do 'pip uninstall jupyterlab-git' and then runjupyter lab build` it works,
  2. After that, I do not have jupyter-lab git installed but I managed to run build command.

Context

This launches a Tornado based HTML Server that serves up an HTML5/Javascript JupyterLab client.

JupyterLab has three different modes of running:

Subcommands

Subcommands are launched as jupyter-notebook cmd [args]. For information on using subcommand 'cmd', do: jupyter-notebook cmd -h.

build clean path paths workspace workspaces

Options

Arguments that take values are actually convenience aliases to full Configurables, whose aliases are listed on the help line. For more information on full configurables, see '--help-all'.

--debug set log level to logging.DEBUG (maximize logging output) --generate-config generate default config file -y Answer yes to any questions instead of prompting. --no-browser Don't open the notebook in a browser after startup. --pylab DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. --no-mathjax Disable MathJax

MathJax is the javascript library Jupyter uses to render math/LaTeX. It is
very large, so you may want to disable it if you have a slow internet
connection, or for offline use of the notebook.

When disabled, equations etc. will appear as their untransformed TeX source.

--allow-root Allow the notebook to be run from root user. --autoreload Autoreload the webapp

Enable reloading of the tornado webapp and all imported Python packages
when any changes are made to any Python src files in Notebook or
extensions.

--script DEPRECATED, IGNORED --no-script DEPRECATED, IGNORED --core-mode Start the app in core mode. --dev-mode Start the app in dev mode for running from source. --watch Start the app in watch mode. --expose-app-in-browser Expose the global app instance to browser via window.jupyterlab --log-level= (Application.log_level) Default: 30 Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL') Set the log level by value or name. --config= (JupyterApp.config_file) Default: '' Full path of a config file. --ip= (NotebookApp.ip) Default: 'localhost' The IP address the notebook server will listen on. --port= (NotebookApp.port) Default: 8888 The port the notebook server will listen on (env: JUPYTER_PORT). --port-retries= (NotebookApp.port_retries) Default: 50 The number of additional ports to try if the specified port is not available (env: JUPYTER_PORT_RETRIES). --sock= (NotebookApp.sock) Default: '' The UNIX socket the notebook server will listen on. --sock-mode= (NotebookApp.sock_mode) Default: '0600' The permissions mode for UNIX socket creation (default: 0600). --transport= (KernelManager.transport) Default: 'tcp' Choices: ['tcp', 'ipc'] --keyfile= (NotebookApp.keyfile) Default: '' The full path to a private key file for usage with SSL/TLS. --certfile= (NotebookApp.certfile) Default: '' The full path to an SSL/TLS certificate file. --client-ca= (NotebookApp.client_ca) Default: '' The full path to a certificate authority certificate for SSL/TLS client authentication. --notebook-dir= (NotebookApp.notebook_dir) Default: '' The directory to use for notebooks and kernels. --browser= (NotebookApp.browser) Default: '' Specify what command to use to invoke a web browser when opening the notebook. If not specified, the default browser will be determined by the webbrowser standard library module, which allows setting of the BROWSER environment variable to override it. --pylab= (NotebookApp.pylab) Default: 'disabled' DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. --gateway-url= (GatewayClient.url) Default: None The url of the Kernel or Enterprise Gateway server where kernel specifications are defined and kernel management takes place. If defined, this Notebook server acts as a proxy for all kernel management and kernel specification retrieval. (JUPYTER_GATEWAY_URL env var) --app-dir= (LabApp.app_dir) Default: 'C:\ProgramData\Miniconda3\share\jupyter\lab' The app directory to launch JupyterLab from.

To see all available configurables, use --help-all

Examples

jupyter lab                       # start JupyterLab
jupyter lab --dev-mode            # start JupyterLab in development mode, with no extensions
jupyter lab --core-mode           # start JupyterLab in core mode, with no extensions
jupyter lab --app-dir=~/myjupyterlabapp # start JupyterLab with a particular set of extensions
jupyter lab --certfile=mycert.pem # use SSL/TLS certificate

(base)

Browser Output
Paste the output from your browser Javascript console here.
ianhi commented 4 years ago

@yuliaUU thanks for the report. Does the build fail with juptyerlab-git and without jupytext? Could you also post the contents of the debug file: C:\Users\egoro\AppData\Local\Temp\jupyterlab-debug-yy1cn6dp.log?

nOe possibility is that this is being caused by https://github.com/jupyterlab/jupyterlab-git/issues/730. If that is the case then there are two potential workarounds: 1.

pip install juptyerlab-git==0.20.0
jupyter labextension uninstall jupyterlab-git --no-build
jupyter labextension install jupyterlab-git=0.20.0

2. Or you can just install the alpha version (which has several improvements): pip install jupyterlab-git==0.21.0a0

yuliaUU commented 4 years ago

pip install jupyterlab-git==0.21.0a0 did not solve the issue

I found the following post, but I am not exactly sure how to solve it. Thye suggest It's caused by using TeX Live or some other version of LaTeX on Windows that was not originally intended for Windows. You can fix your issue by using the latest alpha of 6.0 of nbconvert or by switching to MikTeX.

yuliaUU commented 4 years ago

@ianhi here is a log file:

[LabBuildApp] Node v10.16.3

[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
[LabBuildApp] yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.61s.

[LabBuildApp] > node C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\staging\yarn.js yarn-deduplicate -s fewer --fail
[LabBuildApp] yarn run v1.21.1
$ C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\.bin\yarn-deduplicate -s fewer --fail
Done in 0.54s.

[LabBuildApp] > node C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize
[LabBuildApp] yarn run v1.21.1
$ ensure-max-old-space webpack --config webpack.prod.minimize.config.js
ModuleNotFoundError: Module not found: Error: Can't resolve '@material-ui/icons/Clear' in 'C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components'
    at factory.create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\Compilation.js:925:10)
    at factory (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:401:22)
    at resolver (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:130:21)
    at asyncLib.parallel (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:224:22)
    at C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\neo-async\async.js:2830:7
    at C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\neo-async\async.js:6877:13
    at normalResolver.resolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:214:25)
    at doResolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:213:14)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at resolver.doResolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:27:1)
    at resolver.doResolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\DescriptionFilePlugin.js:67:43)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn42 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:28:1)
    at resolver.doResolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\ModuleKindPlugin.js:30:40)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at args (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\forEachBail.js:30:14)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at resolver.doResolve (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn1 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn43 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn1 (eval at create (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
resolve '@material-ui/icons/Clear' in 'C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components'
  Parsed request is a module
  using description file: C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\package.json (relative path: ./lib/components)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\lab\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\jupyter\node_modules doesn't exist or is not a directory
      C:\ProgramData\Miniconda3\share\node_modules doesn't exist or is not a directory
      C:\ProgramData\node_modules doesn't exist or is not a directory
      C:\node_modules doesn't exist or is not a directory
      looking for modules in C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules
        using description file: C:\ProgramData\Miniconda3\share\jupyter\lab\staging\package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
      looking for modules in C:\ProgramData\Miniconda3\node_modules
        No description file found
        Field 'browser' doesn't contain a valid alias configuration
          using description file: C:\ProgramData\Miniconda3\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@material-ui/icons/Clear)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.wasm doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
        No description file found
        no extension
          Field 'browser' doesn't contain a valid alias configuration
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear doesn't exist
        .wasm
          Field 'browser' doesn't contain a valid alias configuration
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear.wasm doesn't exist
        .mjs
          Field 'browser' doesn't contain a valid alias configuration
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.json doesn't exist
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear.mjs doesn't exist
        .js
          Field 'browser' doesn't contain a valid alias configuration
            as directory
              C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear doesn't exist
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear.js doesn't exist
        .json
          Field 'browser' doesn't contain a valid alias configuration
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear.json doesn't exist
        as directory
          C:\ProgramData\Miniconda3\node_modules\@material-ui\icons\Clear doesn't exist
child_process.js:650
    throw err;
    ^

Error: Command failed: C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\.bin\webpack.CMD --config webpack.prod.minimize.config.js
    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Object.<anonymous> (C:\ProgramData\Miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\buildutils\lib\ensure-max-old-space.js:38:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[LabBuildApp] JupyterLab failed to build
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
    yield

[LabBuildApp]   File "C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\labapp.py", line 138, in start
    raise e

[LabBuildApp]   File "C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\labapp.py", line 134, in start
    build(name=self.name, version=self.version,

[LabBuildApp]   File "C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\commands.py", line 459, in build
    return handler.build(name=name, version=version, static_url=static_url,

[LabBuildApp]   File "C:\ProgramData\Miniconda3\lib\site-packages\jupyterlab\commands.py", line 661, in build
    raise RuntimeError(msg)

[LabBuildApp] RuntimeError: JupyterLab failed to build

[LabBuildApp] Exiting application: JupyterLab
yuliaUU commented 4 years ago

@ianhi 1.Got arror : ``$ pip install juptyerlab-git==0.20.0 ERROR: Could not find a version that satisfies the requirement juptyerlab-git==0.20.0 (from versions: none) ERROR: No matching distribution found for juptyerlab-git==0.20.0```

  1. No luck with pip install jupyterlab-git==0.21.0a0 and get this output
    [W 22:18:48.408 LabApp] Build failed, running a clean and rebuild
    [I 22:18:48.434 LabApp] Cleaning C:\Users\egoro\miniconda3\share\jupyter\lab...
    [W 22:18:48.435 LabApp] 500 POST /lab/api/build?1597900702357 (::1): 'AppOptions' object has no attribute 'all'
    [W 22:18:48.435 LabApp] 'AppOptions' object has no attribute 'all'
    [E 22:18:48.436 LabApp] {
      "Host": "localhost:8888",
      "Connection": "keep-alive",
      "Content-Length": "0",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36",
      "X-Xsrftoken": "2|1459ace8|d378814a24d18b69beb27867d70d6e54|1597821487",
      "Authorization": "token 34189035fb34e4ab0293bd100016b20461300885a57a809c",
      "Content-Type": "application/json",
      "Accept": "*/*",
      "Origin": "http://localhost:8888",
      "Sec-Fetch-Site": "same-origin",
      "Sec-Fetch-Mode": "cors",
      "Sec-Fetch-Dest": "empty",
      "Referer": "http://localhost:8888/lab",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-US,en;q=0.9,ru;q=0.8",
      "Cookie": "_xsrf=2|1459ace8|d378814a24d18b69beb27867d70d6e54|1597821487; username-localhost-8890=\"2|1:0|10:1597882770|23:username-localhost-8890|44:NDFlYjY0MTgzOTBiNDZkM2IzOThiZWQzY2Q4ZTdjNGM=|e23d980a556e4e444cf8dd7408a5b9422f39ee2847d7f891809126b20269d87c\"; username-localhost-8889=\"2|1:0|10:1597899290|23:username-localhost-8889|44:OTMxODIwNzVhNGYzNDRjY2IwYTM2NmE2NTA0MTc1YmU=|5fb26a44464854a888d6f68191d06f3f47120dd77722d9e7813f4ed097301867\"; username-localhost-8888=\"2|1:0|10:1597900702|23:username-localhost-8888|44:ZDFiODU0OTRhMTA3NDc0NmE5ZjlmYzg5YTFhZjI3ZmQ=|5b3e566fbd92b6de4afb3d40d59ca4e8605174e8bd845ed6409834cdb9e457c6\""
    }
fcollonval commented 4 years ago

Hey, there were a typo in the commands suggested by @ianhi. The following should work:

pip install jupyterlab-git==0.20.0
jupyter labextension uninstall @jupyterlab/git --no-build
jupyter lab clean
jupyter labextension install @jupyterlab/git@0.20.0
yuliaUU commented 4 years ago

@fcollonval

Still error:

jupyter labextension install jupyterlab-git@0.20.0
An error occured.
ValueError: "jupyterlab-git@0.20.0" is not a valid npm package

the output of ;of file:

Node v10.16.3

Yarn configuration loaded.
> C:\Users\egoro\miniconda3\npm.CMD pack jupyterlab-git@0.20.0
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/jupyterlab-git - Not found
npm ERR! 404 
npm ERR! 404  'jupyterlab-git@0.20.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\egoro\AppData\Roaming\npm-cache\_logs\2020-08-20T06_04_05_005Z-debug.log

Traceback (most recent call last):

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
    yield

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\labextensions.py", line 93, in start
    ans = self.run_task()

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\labextensions.py", line 138, in run_task
    return any([

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\labextensions.py", line 139, in <listcomp>
    install_extension(

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 388, in install_extension
    return handler.install_extension(extension, pin=pin)

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 603, in install_extension
    info = self._install_extension(extension, tempdir, pin=pin)

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 1499, in _install_extension
    info = self._extract_package(extension, tempdir, pin=pin)

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 1578, in _extract_package
    raise ValueError(msg % source)

ValueError: "jupyterlab-git@0.20.0" is not a valid npm package

Exiting application: jupyter
fcollonval commented 4 years ago

Sorry I said there is a typo. But actually the npm package name is @jupyterlab/git... So I corrected the previous post with the correct name. It should work now.

yuliaUU commented 4 years ago

@fcollonval No, still same issue:

$ jupyter labextension install @jupyterlab/git@0.20.0
Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details:  C:\Users\egoro\AppData\Local\Temp\jupyterlab-debug-n6no0mfq.log

and log file is the following:

Node v10.16.3

Yarn configuration loaded.
> C:\Users\egoro\miniconda3\npm.CMD pack @jupyterlab/git@0.20.0
npm notice 
npm notice package: @jupyterlab/git@0.20.0
npm notice === Tarball Contents === 
npm notice 1.5kB   LICENSE                                   
npm notice 3.1kB   style/diff-common.css                     
npm notice 10.2kB  style/diff-nb.css                         
npm notice 1.4kB   style/diff-text.css                       
npm notice 362B    style/index.css                           
npm notice 1.2kB   style/variables.css                       
npm notice 596B    lib/components/ActionButton.js            
npm notice 788B    lib/style/ActionButtonStyle.js            
npm notice 1.0kB   lib/widgets/AuthorBox.js                  
npm notice 7.4kB   lib/components/BranchMenu.js              
npm notice 2.7kB   lib/style/BranchMenu.js                   
npm notice 166B    lib/style/CloneButton.js                  
npm notice 3.3kB   lib/components/CommitBox.js               
npm notice 2.6kB   lib/style/CommitBox.js                    
npm notice 648B    lib/style/common.js                       
npm notice 1.5kB   lib/widgets/CredentialsBox.js             
npm notice 1.5kB   lib/components/diff/Diff.js               
npm notice 2.3kB   lib/components/diff/DiffWidget.js         
npm notice 3.6kB   lib/components/FileItem.js                
npm notice 1.6kB   lib/style/FileItemStyle.js                
npm notice 16.0kB  lib/components/FileList.js                
npm notice 2.2kB   lib/style/FileListStyle.js                
npm notice 948B    lib/components/FilePath.js                
npm notice 636B    lib/style/FilePathStyle.js                
npm notice 859B    lib/git.js                                
npm notice 4.4kB   lib/widgets/gitClone.js                   
npm notice 4.9kB   lib/gitMenuCommands.js                    
npm notice 10.6kB  lib/components/GitPanel.js                
npm notice 1.3kB   lib/style/GitPanel.js                     
npm notice 3.7kB   lib/widgets/gitPushPull.js                
npm notice 1.3kB   lib/components/GitStage.js                
npm notice 1.6kB   lib/style/GitStageStyle.js                
npm notice 751B    lib/widgets/GitWidget.js                  
npm notice 314B    lib/style/GitWidgetStyle.js               
npm notice 621B    lib/components/HistorySideBar.js          
npm notice 293B    lib/style/HistorySideBarStyle.js          
npm notice 1.3kB   lib/style/icons.js                        
npm notice 4.5kB   lib/index.js                              
npm notice 49.1kB  lib/components/diff/mergeview.js          
npm notice 252B    lib/components/diff/model.js              
npm notice 31.1kB  lib/model.js                              
npm notice 6.2kB   lib/components/diff/NbDiff.js             
npm notice 1.3kB   lib/components/diff/NBDiffHeader.js       
npm notice 10.7kB  lib/components/NewBranchDialog.js         
npm notice 5.3kB   lib/style/NewBranchDialog.js              
npm notice 3.5kB   lib/components/PastCommitNode.js          
npm notice 2.0kB   lib/style/PastCommitNode.js               
npm notice 4.1kB   lib/components/diff/PlainTextDiff.js      
npm notice 6.7kB   lib/components/ResetRevertDialog.js       
npm notice 4.0kB   lib/style/ResetRevertDialog.js            
npm notice 8.0kB   lib/components/SinglePastCommitInfo.js    
npm notice 2.1kB   lib/style/SinglePastCommitInfo.js         
npm notice 192B    lib/tokens.js                             
npm notice 8.8kB   lib/components/Toolbar.js                 
npm notice 3.9kB   lib/style/Toolbar.js                      
npm notice 3.6kB   lib/utils.js                              
npm notice 4.0kB   package.json                              
npm notice 1.4kB   schema/plugin.json                        
npm notice 1.7kB   lib/components/ActionButton.js.map        
npm notice 1.7kB   lib/style/ActionButtonStyle.js.map        
npm notice 2.3kB   lib/widgets/AuthorBox.js.map              
npm notice 13.0kB  lib/components/BranchMenu.js.map          
npm notice 4.9kB   lib/style/BranchMenu.js.map               
npm notice 409B    lib/style/CloneButton.js.map              
npm notice 6.0kB   lib/components/CommitBox.js.map           
npm notice 4.3kB   lib/style/CommitBox.js.map                
npm notice 1.2kB   lib/style/common.js.map                   
npm notice 3.1kB   lib/widgets/CredentialsBox.js.map         
npm notice 3.1kB   lib/components/diff/Diff.js.map           
npm notice 4.2kB   lib/components/diff/DiffWidget.js.map     
npm notice 7.8kB   lib/components/FileItem.js.map            
npm notice 2.9kB   lib/style/FileItemStyle.js.map            
npm notice 31.0kB  lib/components/FileList.js.map            
npm notice 4.2kB   lib/style/FileListStyle.js.map            
npm notice 2.2kB   lib/components/FilePath.js.map            
npm notice 1.3kB   lib/style/FilePathStyle.js.map            
npm notice 1.7kB   lib/git.js.map                            
npm notice 8.3kB   lib/widgets/gitClone.js.map               
npm notice 8.7kB   lib/gitMenuCommands.js.map                
npm notice 19.1kB  lib/components/GitPanel.js.map            
npm notice 2.4kB   lib/style/GitPanel.js.map                 
npm notice 6.7kB   lib/widgets/gitPushPull.js.map            
npm notice 2.9kB   lib/components/GitStage.js.map            
npm notice 3.1kB   lib/style/GitStageStyle.js.map            
npm notice 2.0kB   lib/widgets/GitWidget.js.map              
npm notice 661B    lib/style/GitWidgetStyle.js.map           
npm notice 1.9kB   lib/components/HistorySideBar.js.map      
npm notice 668B    lib/style/HistorySideBarStyle.js.map      
npm notice 2.6kB   lib/style/icons.js.map                    
npm notice 8.5kB   lib/index.js.map                          
npm notice 106.2kB lib/components/diff/mergeview.js.map      
npm notice 1.2kB   lib/components/diff/model.js.map          
npm notice 53.9kB  lib/model.js.map                          
npm notice 11.3kB  lib/components/diff/NbDiff.js.map         
npm notice 2.2kB   lib/components/diff/NBDiffHeader.js.map   
npm notice 18.5kB  lib/components/NewBranchDialog.js.map     
npm notice 9.4kB   lib/style/NewBranchDialog.js.map          
npm notice 7.1kB   lib/components/PastCommitNode.js.map      
npm notice 3.9kB   lib/style/PastCommitNode.js.map           
npm notice 6.7kB   lib/components/diff/PlainTextDiff.js.map  
npm notice 12.3kB  lib/components/ResetRevertDialog.js.map   
npm notice 6.8kB   lib/style/ResetRevertDialog.js.map        
npm notice 14.4kB  lib/components/SinglePastCommitInfo.js.map
npm notice 4.0kB   lib/style/SinglePastCommitInfo.js.map     
npm notice 13.2kB  lib/tokens.js.map                         
npm notice 15.9kB  lib/components/Toolbar.js.map             
npm notice 7.0kB   lib/style/Toolbar.js.map                  
npm notice 6.5kB   lib/utils.js.map                          
npm notice 13.7kB  README.md                                 
npm notice 401B    style/images/arrow-down-white.svg         
npm notice 386B    style/images/arrow-down.svg               
npm notice 266B    style/images/clear-white.svg              
npm notice 296B    style/images/deletions-made-icon.svg      
npm notice 302B    style/images/desktop-white.svg            
npm notice 302B    style/images/desktop.svg                  
npm notice 501B    style/images/diff-hover-dk.svg            
npm notice 506B    style/images/diff-hover.svg               
npm notice 644B    style/images/discard.svg                  
npm notice 1.4kB   style/images/git-branch-white.svg         
npm notice 1.4kB   style/images/git-branch.svg               
npm notice 1.3kB   style/images/git-clone-icon.svg           
npm notice 2.7kB   style/images/git-icon.svg                 
npm notice 654B    style/images/git-pull-white.svg           
npm notice 656B    style/images/git-pull.svg                 
npm notice 647B    style/images/git-push-white.svg           
npm notice 649B    style/images/git-push.svg                 
npm notice 315B    style/images/insertions-made-icon.svg     
npm notice 281B    style/images/move-file-down.svg           
npm notice 301B    style/images/move-file-up.svg             
npm notice 200B    style/images/plus-white.svg               
npm notice 185B    style/images/plus.svg                     
npm notice 341B    style/images/rewind.svg                   
npm notice 607B    lib/components/ActionButton.d.ts          
npm notice 216B    lib/style/ActionButtonStyle.d.ts          
npm notice 427B    lib/widgets/AuthorBox.d.ts                
npm notice 2.7kB   lib/components/BranchMenu.d.ts            
npm notice 468B    lib/style/BranchMenu.d.ts                 
npm notice 47B     lib/style/CloneButton.d.ts                
npm notice 2.1kB   lib/components/CommitBox.d.ts             
npm notice 196B    lib/style/CommitBox.d.ts                  
npm notice 49B     lib/style/common.d.ts                     
npm notice 470B    lib/widgets/CredentialsBox.d.ts           
npm notice 1.1kB   lib/components/diff/Diff.d.ts             
npm notice 750B    lib/components/diff/DiffWidget.d.ts       
npm notice 1.2kB   lib/components/FileItem.d.ts              
npm notice 454B    lib/style/FileItemStyle.d.ts              
npm notice 2.8kB   lib/components/FileList.d.ts              
npm notice 1.1kB   lib/style/FileListStyle.d.ts              
npm notice 328B    lib/components/FilePath.d.ts              
npm notice 136B    lib/style/FilePathStyle.d.ts              
npm notice 287B    lib/git.d.ts                              
npm notice 454B    lib/widgets/gitClone.d.ts                 
npm notice 808B    lib/gitMenuCommands.d.ts                  
npm notice 3.2kB   lib/components/GitPanel.d.ts              
npm notice 318B    lib/style/GitPanel.d.ts                   
npm notice 1.1kB   lib/widgets/gitPushPull.d.ts              
npm notice 598B    lib/components/GitStage.d.ts              
npm notice 364B    lib/style/GitStageStyle.d.ts              
npm notice 634B    lib/widgets/GitWidget.d.ts                
npm notice 45B     lib/style/GitWidgetStyle.d.ts             
npm notice 793B    lib/components/HistorySideBar.d.ts        
npm notice 50B     lib/style/HistorySideBarStyle.d.ts        
npm notice 397B    lib/style/icons.d.ts                      
npm notice 329B    lib/index.d.ts                            
npm notice 4.4kB   lib/components/diff/mergeview.d.ts        
npm notice 782B    lib/components/diff/model.d.ts            
npm notice 9.3kB   lib/model.d.ts                            
npm notice 1.6kB   lib/components/diff/NbDiff.d.ts           
npm notice 433B    lib/components/diff/NBDiffHeader.d.ts     
npm notice 3.1kB   lib/components/NewBranchDialog.d.ts       
npm notice 1.0kB   lib/style/NewBranchDialog.d.ts            
npm notice 1.7kB   lib/components/PastCommitNode.d.ts        
npm notice 632B    lib/style/PastCommitNode.d.ts             
npm notice 1.0kB   lib/components/diff/PlainTextDiff.d.ts    
npm notice 2.8kB   lib/components/ResetRevertDialog.d.ts     
npm notice 575B    lib/style/ResetRevertDialog.d.ts          
npm notice 3.2kB   lib/components/SinglePastCommitInfo.d.ts  
npm notice 576B    lib/style/SinglePastCommitInfo.d.ts       
npm notice 13.1kB  lib/tokens.d.ts                           
npm notice 3.0kB   lib/components/Toolbar.d.ts               
npm notice 874B    lib/style/Toolbar.d.ts                    
npm notice 649B    lib/utils.d.ts                            
npm notice === Tarball Details === 
npm notice name:          @jupyterlab/git                         
npm notice version:       0.20.0                                  
npm notice filename:      jupyterlab-git-0.20.0.tgz               
npm notice package size:  174.8 kB                                
npm notice unpacked size: 827.2 kB                                
npm notice shasum:        7b279b1b97e3de3649fc71a75e75e505e7901722
npm notice integrity:     sha512-i4n98RDF2pXJI[...]fSEAPYjnagt/A==
npm notice total files:   182                                     
npm notice 
jupyterlab-git-0.20.0.tgz

Node v10.16.3

Yarn configuration loaded.
Building jupyterlab assets (build:prod:minimize)
> node C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @lumino/coreutils@1.5.3" has unmet peer dependency "crypto@1.0.1".
warning " > @jupyterlab/git@0.20.0" has unmet peer dependency "codemirror@^5.0.0".
warning "@jupyterlab/git > nbdime@6.0.0" has unmet peer dependency "codemirror@^5.0.0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 23.56s.

> node C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\staging\yarn.js yarn-deduplicate -s fewer --fail
yarn run v1.21.1
$ C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\.bin\yarn-deduplicate -s fewer --fail
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

> node C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\staging\yarn.js
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @lumino/coreutils@1.5.3" has unmet peer dependency "crypto@1.0.1".
warning " > @jupyterlab/git@0.20.0" has unmet peer dependency "codemirror@^5.0.0".
warning "@jupyterlab/git > nbdime@6.0.0" has unmet peer dependency "codemirror@^5.0.0".
[5/5] Building fresh packages...
Done in 5.57s.

> node C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize
yarn run v1.21.1
$ ensure-max-old-space webpack --config webpack.prod.minimize.config.js
ModuleNotFoundError: Module not found: Error: Can't resolve '@material-ui/icons/Clear' in 'C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components'
    at factory.create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\Compilation.js:925:10)
    at factory (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:401:22)
    at resolver (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:130:21)
    at asyncLib.parallel (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:224:22)
    at C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\neo-async\async.js:2830:7
    at C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\neo-async\async.js:6877:13
    at normalResolver.resolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\webpack\lib\NormalModuleFactory.js:214:25)
    at doResolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:213:14)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at resolver.doResolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:27:1)
    at resolver.doResolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\DescriptionFilePlugin.js:67:43)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn42 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:28:1)
    at resolver.doResolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\ModuleKindPlugin.js:30:40)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at args (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\forEachBail.js:30:14)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at resolver.doResolve (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn0 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn1 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn43 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
    at _fn1 (eval at create (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1)
    at hook.callAsync (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\enhanced-resolve\lib\Resolver.js:285:5)
resolve '@material-ui/icons/Clear' in 'C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components'
  Parsed request is a module
  using description file: C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\package.json (relative path: ./lib/components)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\components\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\lib\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\git\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\lab\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\jupyter\node_modules doesn't exist or is not a directory
      C:\Users\egoro\miniconda3\share\node_modules doesn't exist or is not a directory
      C:\Users\node_modules doesn't exist or is not a directory
      C:\node_modules doesn't exist or is not a directory
      looking for modules in C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules
        using description file: C:\Users\egoro\miniconda3\share\jupyter\lab\staging\package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
      looking for modules in C:\Users\egoro\node_modules
        No description file found
        Field 'browser' doesn't contain a valid alias configuration
      looking for modules in C:\Users\egoro\miniconda3\node_modules
        No description file found
        Field 'browser' doesn't contain a valid alias configuration
          using description file: C:\Users\egoro\miniconda3\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@material-ui/icons/Clear)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.wasm doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
        No description file found
        no extension
          Field 'browser' doesn't contain a valid alias configuration
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
        No description file found
        no extension
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\node_modules\@material-ui\icons\Clear doesn't exist
        .wasm
          Field 'browser' doesn't contain a valid alias configuration
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear doesn't exist
        .wasm
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\node_modules\@material-ui\icons\Clear.wasm doesn't exist
        .mjs
          Field 'browser' doesn't contain a valid alias configuration
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear.json doesn't exist
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear.wasm doesn't exist
        .mjs
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\node_modules\@material-ui\icons\Clear.mjs doesn't exist
        .js
          Field 'browser' doesn't contain a valid alias configuration
            as directory
              C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@material-ui\icons\Clear doesn't exist
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear.mjs doesn't exist
        .js
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\node_modules\@material-ui\icons\Clear.js doesn't exist
        .json
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear.js doesn't exist
        .json
          Field 'browser' doesn't contain a valid alias configuration
          C:\Users\egoro\node_modules\@material-ui\icons\Clear.json doesn't exist
        as directory
          C:\Users\egoro\node_modules\@material-ui\icons\Clear doesn't exist
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear.json doesn't exist
        as directory
          C:\Users\egoro\miniconda3\node_modules\@material-ui\icons\Clear doesn't exist
child_process.js:650
    throw err;
    ^

Error: Command failed: C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\.bin\webpack.CMD --config webpack.prod.minimize.config.js
    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Object.<anonymous> (C:\Users\egoro\miniconda3\share\jupyter\lab\staging\node_modules\@jupyterlab\buildutils\lib\ensure-max-old-space.js:38:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

JupyterLab failed to build
Traceback (most recent call last):

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
    yield

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\labextensions.py", line 104, in start
    build(clean_staging=self.should_clean,

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 459, in build
    return handler.build(name=name, version=version, static_url=static_url,

  File "C:\Users\egoro\miniconda3\lib\site-packages\jupyterlab\commands.py", line 661, in build
    raise RuntimeError(msg)

RuntimeError: JupyterLab failed to build

Exiting application: jupyter
fcollonval commented 4 years ago

Did you run jupyter lab clean prior to jupyter lab build?

yuliaUU commented 4 years ago

Yes, it said Success as a last line. I ran those 4 lines of code that were written. Just last 9ne gave and error

fcollonval commented 4 years ago

Could you try:

jlpm cache clean
jupyter lab clean
jupyter lab build

If it still does not work, could you try creating another conda environment to see if it works:

conda create -n test-git jupyterlab=2 jupyterlab-git=0.20
conda activate test-git
jupyter lab build
yuliaUU commented 4 years ago

This worked!

jlpm cache clean # all claered
jupyter lab clean # Success
jupyter lab build