decentraland / cli

πŸ’» Decentraland command-line interface
https://docs.decentraland.org
Apache License 2.0
69 stars 57 forks source link

dlc start triggers an error #607

Open jalmansa88 opened 2 years ago

jalmansa88 commented 2 years ago

What?

Trying to start a new scene from scratch using: OS Linux Mint 20.1 NodeJS v16.13.0 Just installed Decentraland CLI

➜  decentraland dcl start
βœ” Latest SDK installation found.
βœ” Checking decentraland libraries
Building project using "npm run watch"

> dcl-project@1.0.0 watch
> build-ecs --watch

> dev mode: true
> working directory: /home/almansa/projects/decentraland

> processing /src/game.ts
> bundling:
  - node_modules/@dcl/amd/dist/amd.js
  - node_modules/decentraland-ecs/dist/src/index.js
  - src/game.ts
> writing /bin/game.js
> writing /bin/game.js.lib

The compiler is watching file changes...

[HPM] Proxy created: /  -> https://peer-lb.decentraland.org/
[HPM] Proxy created: /  -> https://peer-lb.decentraland.org/

Preview server is now running

  Available on:

    http://127.0.0.1:8000?position=0%2C0&SCENE_DEBUG_PANEL
    http://192.168.1.129:8000?position=0%2C0&SCENE_DEBUG_PANEL

  Details:

Press CTRL+C to exit

node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error: spawn /home/almansa/node/lib/node_modules/decentraland/dist/xdg-open ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/almansa/node/lib/node_modules/decentraland/dist/xdg-open',
  path: '/home/almansa/node/lib/node_modules/decentraland/dist/xdg-open',
  spawnargs: [ 'http://127.0.0.1:8000?position=0%2C0&SCENE_DEBUG_PANEL' ]
}
➜  decentraland 
gonpombo8 commented 2 years ago

This seems to be a problem with Linux and opening the browser via de cli. Ignore the error, meanwhile you can open your preferred browser and go to http://127.0.0.1:8000?position=0%2C0&SCENE_DEBUG_PANEL.

jalmansa88 commented 2 years ago

Hi @gonpombo8 , thanks for your response. Unfortunately, the page does not load. I will investigate further also.

jalmansa88 commented 2 years ago

I have a workaround, execute the statement dcl start adding --no-browser flag

gonpombo8 commented 2 years ago

nice. we still need to fix it but good to know that isn't a blocker