尝试在Visual Studio 2017中构建解决方案时,出现以下错误消息:
The command "call npm run build-templates" exited with code 134
看着输出窗口,我发现了以下内容:
Installing npm packages for project {project}
npm WARN No description
npm WARN No repository field.
up to date in 12.823s
Building templates for project {project}
> build-templates
> gulp buildviews
gulp[14240]: c:\ws\src\node_contextify.cc:640: Assertion `args[1]->IsString()' failed.
1: 00007FF6C923896A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4554
2: 00007FF6C91E8956 uv_loop_fork+85542
3: 00007FF6C91E8A03 uv_loop_fork+85715
4: 00007FF6C91EEAB8 uv_loop_fork+110472
5: 00007FF6C984DBFF v8::internal::PassesFilter+847
6: 00007FF6C984EE37 v8::internal::PassesFilter+5511
7: 00007FF6C984E0AC v8::internal::PassesFilter+2044
8: 00007FF6C984DFCB v8::internal::PassesFilter+1819
9: 000000ACAF550481
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! build-templates: `gulp buildviews`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the build-templates script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
error MSB3073: The command "call npm run build-templates" exited with code 134.
答案 0 :(得分:0)
我通过在项目文件夹中运行npm install gulp
解决了该问题。我对npm经验不足,所以我不知道它到底做了什么,但是它解决了我的问题。