lens icon indicating copy to clipboard operation
lens copied to clipboard

Build documentation: "npm run dev" does not start the app

Open daladim opened this issue 2 years ago • 1 comments

Describe the bug I'm new to node/npm, but I'd like to contribute to Lens. I tried building following the (very scarce) documentation here. npm run dev seems to successfully complete, but Lens is not started (unlike the documentation says).

Could you help me to have Lens started? Also, so that I reach a working npm run dev, I also had to npm install first and remove the node_modules/ folder tracked in git. Was that a bug, a missing doc, or an unfortunate initiative from my side?

$ git clone https://github.com/lensapp/lens
$ cd lens
$ rm -r node_modules/
$ npm install
...
$ npm run dev
...

-------------------------

 >  Lerna (powered by Nx)   Successfully ran target build for 49 projects



> postdev
> lerna watch -- lerna run build --stream --include-dependents --scope \$LERNA_PACKAGE_NAME

lerna notice cli v6.6.2
lerna info versioning independent
lerna info watch Executing command "lerna run build --stream --include-dependents --scope $LERNA_PACKAGE_NAME" on changes in 53 packages.

# It then hangs forever

Screenshots image

Environment (please complete the following information):

  • Lens Version: master at f1a960fd785b62a118acd8b1525d879f39917e21
  • OS: Ubuntu (ARM64 build) in a VM
  • Installation method (e.g. snap or AppImage in Linux): built from source

daladim avatar Oct 20 '23 12:10 daladim

Running npm run shows me a list of tasks.

It seems npm run start-dev what was I was looking for. However, does that mean the documentation could be improved? (but I'd rather not do this myself as I'm not seasoned enough at npm/lerna (yet?) 😄 )

daladim avatar Oct 20 '23 12:10 daladim