npm start在eclipse上工作正常,但是在Visual Studio代码中,它显示以下错误:
ng2@1.0.0-SNAPSHOT开始E:\ workspaces ...
gulp buildNoRev && gulp连接| ng serve --proxy-config proxy.conf.json --port 4201 --base-href / transactionnel / v2 /
'node'n'est pas reconneant que commande interne
既可以执行程序又可以执行任何命令。
npm ERR!代码ELIFECYCLE
npm ERR! errno 1
npm ERR! ng2@1.0.0-SNAPSHOT开始:====> DataSource reinstated |
|
<EjsGrid id="Grid" DataSource="@jlfDoc.Segments" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" AllowPaging="true">
<GridPageSettings PageSize="5"></GridPageSettings>
<GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true"></GridEditSettings>
<GridColumns>
<GridColumn Field="SourceText" HeaderText="Source" IsPrimaryKey="true" TextAlign="@Syncfusion.EJ2.RazorComponents.Grids.TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field="TargetText" HeaderText="Target" Width="150"></GridColumn>
</GridColumns>
</EjsGrid>
<hr/>
<p>@rawContent</p>
<h1>There are @segments Segments</h1>
<i>@oneTextString</i>
@functions {
public object gridData { get; set; }
public JliffDocument jlfDoc { get; set; }
public string rawContent { get; set; }
public int segments { get; set; }
public string oneTextString { get; set; }
protected override async Task OnInitAsync()
{
string serverDoc = String.Empty;
using (HttpClient client = new HttpClient())
{
serverDoc = await client.GetStringAsync("https://localhost:44381/api/document");
}
rawContent = serverDoc;
JliffDocument jd;
JSON.MakeInto(JSON.Load(serverDoc), out jd);
segments = jd.Segments.Count;
oneTextString = jd.Segments[0].TargetText;
jlfDoc = jd; <==== UNCOMMENTED
}
}
npm ERR!退出状态1
npm ERR!
npm ERR! ng2@1.0.0-SNAPSHOT启动脚本失败。
npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。
npm错误!可以在以下位置找到此运行的完整日志: npm ERR! E:\ repositories \ npm_logs \ 2019-05-24T09_31_33_889Z-debug.log
请帮忙!