[英]Error Executing NPM command In VSTS CI Build
I'm new to CI Builds in VSTS and as a result, having a struggle with a specific npm task.我是 VSTS 中 CI 构建的新手,因此,在处理特定的 npm 任务时遇到了困难。
In the Build process, after the first five tasks execute, I use an npm task with a custom command.在构建过程中,前五个任务执行后,我使用带有自定义命令的 npm 任务。 This command executes webpack script defined in my package.json
此命令执行在我的 package.json 中定义的 webpack 脚本
npm run prod npm 运行产品
"prod": "webpack --env.NODE_ENV=production --config webpack.config.js --progress"
When this task runs, it errors with the following message当此任务运行时,它会出错并显示以下消息
Error: Npm failed with return code: 1错误:Npm 失败,返回代码:1
Thoughts?想法? Suggestions?
建议? This is trying me a little insane, I'm sure there's a simple solution :)
这让我有点疯狂,我相信有一个简单的解决方案:)
替换npm run prod
以在命令和参数框中run prod
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.