错误 MSB3073:命令 "node node_modules/webpack/bin/webpack.js --env.prod" 已退出,代码为 2

Error MSB3073: The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 2

我正在使用 asp.net core 2x 和 angular 5 构建 Web 应用程序,在 development/debug 模式下,当我尝试使用 well.But 发布它时,一切都在构建 well.But visual studio 2017 年的发布模式正在获取此 error.please 帮助我解决 this.Am 未在我的代码中使用它但它存在的问题。装饰器不支持函数调用,但在 'Injectable' 中调用了 'makeParamDecorator' 'Injectable'致电'makeParamDecorator'。请help.Thanks提前。Screenshot of my error message

您需要在控制台上运行: 节点 node_modules/webpack/bin/webpack.js --env.prod

然后你会得到所有问题的列表,需要解决所有问题,有人会像:

ERROR in navmenu.component.html: Property 'auth' is protected and only accessible within class 'NavMenuComponent' and its subclasses.

另一种情况:

ERROR in Error at estados.component.html(19,72): Expected 0 arguments, but got 1.
Error at home.component.html(8,12): Property 'selectedCharacter' does not exist on type 'HomeComponent'. Did you mean 'selectedCharacters'?

每个错误都有不同的解决方法,您需要全部解决。

你可以检查这个link: Angular – The command “node node_modules/webpack/bin/webpack.js –env.prod” exited with code 2 and similar errors: how to fix them