相关疑难解决方法(0)

命令"npm run build - --prod"退出,代码1错误

我正在开发Visual Studio 2017中的Asp.Net Core 2和Angular 5项目.

当我要发布我的项目时,错误' 命令'npm run build - --prod"退出,代码1 '显示在错误列表窗口中.
我在ASP.NET Core 2 Angular模板链接中使用Angular CLI 创建了项目,一切都很好,项目正确运行和发布.
过了一会儿,我不知道究竟发生了什么导致项目没有发布.

在npm-debug.log文件中

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build',
1 verbose cli   '--',
1 verbose cli   '--prod' ]
2 info using npm@3.10.10
3 info using node@v6.10.3
4 verbose stack Error: ENOENT: no such file or directory, open …
Run Code Online (Sandbox Code Playgroud)

npm npm-install asp.net-core angular-cli angular

24
推荐指数
3
解决办法
4万
查看次数

标签 统计

angular ×1

angular-cli ×1

asp.net-core ×1

npm ×1

npm-install ×1