LUIS-app: 'npm' is not recognized as an in

2019-08-24 03:44发布

问题:

I have followed the tutorial to integrate LUIS and QnA Maker to create a LUIS app. When I got to the final step and tried to build the app, I got the error message

\> \build.cmd 
    Installing Kudu Sync 
    An error has occurred during web
    site deployment. 'npm' is not recognized as an internal or external 
    command, operable program or batch file.

Apparently, npm is missing on the build server. How can that be and how can I fix it?

回答1:

Let's try running build from the console to see if that resolves this issue.

  1. First, from your App Service Editor click on your bot name at the top and select Open Kudu Console:

  1. this will open the diagnostic console in a new tab. Enter cd site\wwwroot && build.cmd

Hopefully that works!



标签: azure npm luis