decentraland / cli

💻 Decentraland command-line interface
https://docs.decentraland.org
Apache License 2.0
69 stars 61 forks source link

`dcl deploy` fails while calling `xdg-open` #593

Open EibrielInv opened 2 years ago

EibrielInv commented 2 years ago

On Ubuntu 18.04 and Node v16.8.0, when running dcl deploy fails with the following error.

Would be great if you can add a -b parameter to prevent opening the browser, like in dcl start

Discovered 203 files.
✔ Deployment structure created.
You need to sign the content before the deployment:
⠹ Signing app ready at http://localhost:8001/linkernode:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

Error: spawn /home/username/.nvm/versions/node/v16.8.0/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/username/.nvm/versions/node/v16.8.0/lib/node_modules/decentraland/dist/xdg-open',
  path: '/home/username/.nvm/versions/node/v16.8.0/lib/node_modules/decentraland/dist/xdg-open',
  spawnargs: [ 'http://localhost:8001/linker' ]
}
pabloes commented 2 years ago

in deploy.js opn package is deprecated, should use open instead ?

EibrielInv commented 2 years ago

Another workaround is to downgrade to the LTS version of Node v14.16.0