[VsCode] Connecting to a task hub results in error like 'npm list -g --depth=0 npm ERR! ...'
See original GitHub issueStarting 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:
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:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
fixed in v5.3