LUIS-app: 'npm' is not recognized as an internal or external command, when trying to install “Kudu Sync”

十年热恋 提交于 2019-12-13 03:50:35

问题


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!



来源:https://stackoverflow.com/questions/51416032/luis-app-npm-is-not-recognized-as-an-internal-or-external-command-when-tryin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!