聊天SDKv4 + QnAmarker - 'npm'不被识别为内部或外部命令 [英] Chat SDKv4 + QnAmarker - 'npm' is not recognized as an internal or external command

查看:74
本文介绍了聊天SDKv4 + QnAmarker - 'npm'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


最近我在使用聊天机器人运行build.cmd时请求了解有关问题的支持SDKv4 + QnAservice,并确定该问题与Microsoft的BUG有关。
此特定问题已得到解决。


但现在我注意到其他问题显然没有理由发生。


有时当我尝试在Azure在线编辑器中运行build.cmd时,我会收到以下消息之一。
我已经重新启动了实例,但问题仍然存在。



该应用程序未被使用(仅用于我的测试),我已经重新启动了所有应用程序,所以它无法使用。 另一条消息说它找不到npm
命令 ,但如果它在提示符处直接执行npm则确实存在。 所以我不知道是什么原因造成这个新问题。


有没有人经历过这个?



欢迎来到应用服务编辑器控制台


键入"帮助"以获取可用命令列表,或按"Ctrl + Space"获取帮助。输入"退出"关闭控制台。


  \> build.cmd


        复制了1个文件。


'npm'未被识别为内部或外部命令,


可操作程序或批处理文件。


安装Kudu同步


网站部署期间发生错误。


\> ;



欢迎使用App Service编辑器控制台


输入"帮助"以获取可用列表命令或按"Ctrl + Space"获取帮助。输入"退出"以关闭控制台。


 


\> build.cmd


        复制了1个文件。


安装Kudu Sync


D:\ local \ AppData \ nnpm \ kudusync - > D:\local \ AppData \\\
pm \\\
ode_modules \ kudusync \ bin \ kudusync


+ kudusync@0.3.0


在3.377s中添加了来自8个贡献者的7个包


处理ASP.NET核心Web应用程序部署。


  恢复在792.52毫秒完成D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ for .NET Core


版权所有(C)Microsoft Corporation。保留所有权利。


 


  对于D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5):错误MSB3030:无法复制文件"D:\\\\\\\\\\\\\\\\\\\\\\\\ \\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj"
,因为找不到它。 [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\ Microsoft.Commun.CurrentVersion.targets(4582,5):警告MSB3026:无法复制"D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj"
到" bin \Release\\\
etcoreapp2.1 \ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1 \\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj" ;.开始在1000毫秒内重试1次。该进程无法访问文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj'
因为它被正在使用另一个过程。  [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5):警告MSB3026:无法复制"D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\ netcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj"
到" bin \Release\\\
etcoreapp2.1 \ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1 \\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj" ;.开始在1000毫秒内重试1
。该进程无法访问文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\释放\\\
etcoreapp2.1 \ QnABot.csproj'
,因为它正由另一个进程使用。  [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5):警告MSB3026:无法复制"D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\ netcoreapp2.1\QnABot.csproj"
到" bin \Release\\\
etcoreapp2.1 \ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1 \\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj" ;.开始在1000毫秒内重试1次。该过程不能
访问文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\\ \\ QnABot.csproj'因为它被另一个进程使用
  [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5):警告MSB3026:无法复制"D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\ netcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj"
到" bin \Release\\\
etcoreapp2.1 \ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1 \\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj" ;.开始在1000毫秒内重试2
。该进程无法访问文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj '
,因为它正由另一个进程使用。  [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5):警告MSB3026:无法复制"D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj"
到" bin \Release\\\
etcoreapp2.1 \ bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1 \\ \\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj" ;.开始在1000毫秒重试2。该进程无法访问文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\bin\Release\\\
etcoreapp2.1\QnABot.csproj'
因为它被正在使用另一个过程。  [D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ --output" D:\ local \Temp \ ___ deployTemp505" - 配置发布


网站部署期间发生错误。


\>



\> npm



用法:npm< command>



其中< command>是以下之一:

   访问,adduser,audit,bin,bugs,c,cache,ci,cit,
$
   完成,配置,创建,ddp,重复数据删除,弃用,以及
    dist-tag,docs,doctor,edit,explore,get,help,
$
    help-search,hook,i,init,install,install-test,it,link,
$
    list,ln,login,logout,ls,outdated,owner,pack,ping,
$
   前缀,个人资料,修剪,发布,rb,重建,回购,重新启动,
$
    root,run,run-script,s,se,search,set,shrinkwrap,star,
$
   星星,开始,停止,t,团队,测试,令牌,tst,un,
$
   卸载,取消发布,取消星标,更新,更新,v,版本,查看,
$
    whoami



npm< command> -h&NBSP;快速帮助< command>

npm -l           显示完整使用信息

npm help< term>  在< term>上搜索帮助

npm help npm     涉及的概述



在ini格式的文件中指定配置:

    D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ - 键值

配置信息可以通过以下方式查看:npm help config



npm@6.4.1 D:\Program Files( x86)\ npm \6.4.1 \\\
ode_modules \ nn \\ n \\ n周
\>


再次发送!


 


解决方案

我遇到了类似的警告问题,但没有识别出'npm'。

当我删除"bin"时"WWWROOT"下的文件夹并重新运行"build.cmd"没有任何问题,它的工作正常。




Hi!

Recently I requested a support regarding a problem when running build.cmd with the chatbot SDKv4 + QnAservice and it was identified that the problem was related to a BUG by Microsoft. This specific issue has been resolved.

But now I have noticed other problems that apparently have no reason to occur.

Sometimes when I try to run build.cmd in the Azure online editor I get one of the messages below. I have already restarted the instances, but the problem persists.

The application is not being used (is only for my test), I already restarted all apps, so it could not be in use.The other message says that it does not find npm command , but if it executes only npm directly at the prompt it does exist.So I have no idea what might be causing this new problem.

Has anyone ever experienced this ?

Welcome to the App Service Editor console

Type 'help' for a list of available commands or press 'Ctrl+Space' for assist. Type 'exit' to close a console.

 \> build.cmd

        1 file(s) copied.

'npm' is not recognized as an internal or external command,

operable program or batch file.

Installing Kudu Sync

An error has occurred during web site deployment.

\>

Welcome to the App Service Editor console

Type 'help' for a list of available commands or press 'Ctrl+Space' for assist. Type 'exit' to close a console.

 

\> build.cmd

        1 file(s) copied.

Installing Kudu Sync

D:\local\AppData\npm\kudusync -> D:\local\AppData\npm\node_modules\kudusync\bin\kudusync

+ kudusync@0.3.0

added 7 packages from 8 contributors in 3.377s

Handling ASP.NET Core Web Application deployment.

  Restore completed in 792.52 ms for D:\home\site\wwwroot\QnABot.csproj.

Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.

 

  Restore completed in 514.89 ms for D:\home\site\wwwroot\QnABot.csproj.

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): error MSB3030: Could not copy the file "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" because it was not found. [D:\home\site\wwwroot\QnABot.csproj]

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): warning MSB3026: Could not copy "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" to "bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj' because it is being used by another process.  [D:\home\site\wwwroot\QnABot.csproj]

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): warning MSB3026: Could not copy "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" to "bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj' because it is being used by another process.  [D:\home\site\wwwroot\QnABot.csproj]

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): warning MSB3026: Could not copy "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" to "bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj' because it is being used by another process.  [D:\home\site\wwwroot\QnABot.csproj]

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): warning MSB3026: Could not copy "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" to "bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj". Beginning retry 2 in 1000ms. The process cannot access the file 'D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj' because it is being used by another process.  [D:\home\site\wwwroot\QnABot.csproj]

D:\Program Files (x86)\dotnet\sdk\2.2.106\Microsoft.Common.CurrentVersion.targets(4582,5): warning MSB3026: Could not copy "D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj" to "bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj". Beginning retry 2 in 1000ms. The process cannot access the file 'D:\home\site\wwwroot\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\bin\Release\netcoreapp2.1\QnABot.csproj' because it is being used by another process.  [D:\home\site\wwwroot\QnABot.csproj]

Failed exitCode=1, command=dotnet publish "QnABot.csproj" --output "D:\local\Temp\___deployTemp505" --configuration Release

An error has occurred during web site deployment.

\>

\> npm

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    completion, config, create, ddp, dedupe, deprecate,
    dist-tag, docs, doctor, edit, explore, get, help,
    help-search, hook, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rb, rebuild, repo, restart,
    root, run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    D:\home\data\monaco\home\npm\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.4.1 D:\Program Files (x86)\npm\6.4.1\node_modules\npm
\>

Tks again!

 

解决方案

Hi, I faced the similar warning issue but not the 'npm' not recognized.
When I delete the "bin" folder under "WWWROOT" and rerun the "build.cmd" it's working fine without any issue's.



这篇关于聊天SDKv4 + QnAmarker - 'npm'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆