Cannot run 'func' command
See original GitHub issueEverytime I run npm install --global azure-functions-core-tools@core and then try just running func I get the following error:
PS C:\Users\JayJain\Documents\Code\hl7-recv> func
func : The term 'func' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ func
+ ~~~~
+ CategoryInfo : ObjectNotFound: (func:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
System: Node: v8.11.4 Npm: 5.6.0 VSCode Version: 1.33.1 (user setup) Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.18362
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot run 'func' command · Issue #1218 - GitHub
Everytime I run npm install --global azure-functions-core-tools@core and then try just running func I get the following error:.
Read more >'func' is not recognized as an internal or external command ...
Post installation was able to run "func" command successfully. Additional Documentation Reference. Azure Functions for Vistal Studio Code.
Read more >func command not found while using Azure Functions locally.
func command not found while using Azure Functions locally. I am trying to run Azure Fuctions locally on Windows PC using VS Code....
Read more >azure-functions-core-tools - npm
Start using azure-functions-core-tools in your project by running `npm i ... To execute the func command without specifying the full path to ...
Read more >Can't debug multiple azure functions locally when using .net 5
Could not execute because the specified command or file was not found. ... that is started above using the func command to the...
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 Free
Top 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
Running
npm config set prefix 'C:\Program Files\nodejs'resolved my issue.Thanks @EricJizbaMSFT for pointing this out to me!
Alright it sounds like npm packages aren’t in your path for some reason. You could try manually running
npm uninstall --global azure-functions-core-toolsand re-install with the above command to see if that “resets” it. Here’s a few other resources regarding npm path issues:PATHand npm global prefix: https://github.com/npm/npm/issues/16313