bombillazoB
Denoβ€’2y agoβ€’
1 reply
bombillazo

Run `nvm` using Deno.Command

Hello, I am trying to run nvm from a Deno script using Deno.Command.
  new Deno.Command('nvm', {
    args: ['use'],
    stderr: 'inherit',
    stdin: 'inherit',
    stdout: 'piped',
  }).outputSync;


but I am getting the following error:
Failed to spawn 'nvm': No such file or directory (os error 2)


nvm was install with brew and I tried passing env: {PATH: Deno.env.get('PATH') but nothing works...
Was this page helpful?