Skip to content

jlpm develop fails due to lack of buildutils/lib/develop.js file #7379

@JasonWeill

Description

@JasonWeill

In a fresh Conda environment with pip, python, and nodejs installed, I have the tip of the main branch of Notebook checked out. After running pip install -e ".[dev,test]" successfully, per the contributor docs, I run jlpm develop. This produces an error:

 jlpm develop
Installing /Users/jweill/git/notebook/notebook/labextension -> @jupyter-notebook/lab-extension
Removing: /opt/miniconda3/envs/notebook-20240523/share/jupyter/labextensions/@jupyter-notebook/lab-extension
Symlinking: /opt/miniconda3/envs/notebook-20240523/share/jupyter/labextensions/@jupyter-notebook/lab-extension -> /Users/jweill/git/notebook/notebook/labextension
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/Users/jweill/git/notebook/buildutils/lib/develop.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.2

There is a buildutils directory under my local notebook repository, but there is no lib directory under it.

"develop": "jupyter labextension develop . --overwrite && node ./buildutils/lib/develop.js --overwrite",

The first command in the rvalue above succeeds. The latter does not, because the directory and file do not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions