Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fnm is not working in Visual Studio Task Runner #1322

Open
jsalwen opened this issue Nov 13, 2024 · 2 comments
Open

fnm is not working in Visual Studio Task Runner #1322

jsalwen opened this issue Nov 13, 2024 · 2 comments

Comments

@jsalwen
Copy link

jsalwen commented Nov 13, 2024

I am using VS 2019 and VS 2022. FNM is working correctly in PowerShell, cmd shell and bash on my Windows OS.

But I cannot get it to work in the VS 2019 / 2022 Task Runner.

  • note: This is not in VS Code, this is in Visual Studio
  • note: Task Runner was added to VS to allow it to run gulpfile.js for builds.

I am trying to figure out how to get Task Runner to work with fnm. Any suggestions are appreciated.

@Schniz
Copy link
Owner

Schniz commented Nov 13, 2024

Hi! Can you please share what Task Runner is? I’m not a VSCode user either ;D

@FabriBorgobello
Copy link

Hi! Can you please share what Task Runner is? I’m not a VSCode user either ;D

It's basically a custom shortcut in vscode to speed up things like building, testing, running code, etc

e.g.:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "echo hello",
      "type": "shell",
      "command": "echo",
      "args": ["Hello, World!"],
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": []
    }
  ]
}

Then you can do: "Run task"> "echo hello" and it will execute the code in a new terminal inside the ide

https://code.visualstudio.com/docs/editor/tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants