Cannot run 'func' command

See original GitHub issue

Everytime 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wookiee89commented, Apr 24, 2019

Running npm config set prefix 'C:\Program Files\nodejs' resolved my issue.

Thanks @EricJizbaMSFT for pointing this out to me!

0reactions
ejizbacommented, Apr 24, 2019

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-tools and re-install with the above command to see if that “resets” it. Here’s a few other resources regarding npm path issues:

Read more comments on GitHub >

github_iconTop 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 >

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