question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[VsCode] Connecting to a task hub results in error like 'npm list -g --depth=0 npm ERR! ...'

See original GitHub issue

Starting from v5.2 DfMon’s VsCode extension resolves the full true path to func.exe by executing npm list -g --depth=0 (to get the location of npm’s global packages) and then looking for azure-functions-core-tools package in that folder.

It appears, that npm list -g --depth=0 might fail, if there’s any corruption/incompatibility in those global packages.

If you’re getting an error related to this, then the quick solution is to explicitly specify full path to func.exe (or just func on some platforms) via this setting:

image

On Windows that path typically looks like C:\Users\username\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.exe. On other platforms it will be different, but similarly related to npm’s global folder.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
scale-tonecommented, Mar 23, 2022

Apologize, I should have tested this with yarn on Windows (I only tested on Linux).

Please, specify the explicit path to func.exe as a workaround.

1reaction
scale-tonecommented, Mar 23, 2022

fixed in v5.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tasks in Visual Studio Code
Integrate with External Tools via Tasks. Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems.
Read more >
Debug Node.js Apps using Visual Studio Code
There are a few ways you can debug your Node.js programs in VS Code: Use auto attach to debug processes you run in...
Read more >
Documentation for Visual Studio Code
User Interface - Introduction to the basic UI, commands, and features of the VS Code editor. Settings - Customize VS Code for how...
Read more >
Language Server Extension Guide - Visual Studio Code
This extension has access to all VS Code Namespace API. ... cd vscode-extension-samples/lsp-sample > npm install > npm run compile > code ....
Read more >
Debugging in Visual Studio Code
Debugger extensions. VS Code has built-in debugging support for the Node.js runtime and can debug JavaScript, TypeScript, or any other language that gets ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found