Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 声纳:TFS“;“发布质量关卡结果”;检查节点\u模块时任务失败_Angular_Tfs_Sonarqube - Fatal编程技术网

Angular 声纳:TFS“;“发布质量关卡结果”;检查节点\u模块时任务失败

Angular 声纳:TFS“;“发布质量关卡结果”;检查节点\u模块时任务失败,angular,tfs,sonarqube,Angular,Tfs,Sonarqube,节点\u模块是纱线(或npm)存储依赖项的位置 我正在使用TFS任务对angular 7项目执行SonarQube分析,该项目采用以下标准配置: “发布质量门结果”任务失败,出现以下错误: 2019-02-06T16:15:40.1474327Z ##[debug]findPath: 'C:\Agt2\_work\14' 2019-02-06T16:15:40.1474945Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true' 2

节点\u模块
是纱线(或npm)存储依赖项的位置

我正在使用TFS任务对angular 7项目执行SonarQube分析,该项目采用以下标准配置:

“发布质量门结果”任务失败,出现以下错误:

2019-02-06T16:15:40.1474327Z ##[debug]findPath: 'C:\Agt2\_work\14'
2019-02-06T16:15:40.1474945Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2019-02-06T16:15:40.1475394Z ##[debug]findOptions.followSymbolicLinks: 'true'
2019-02-06T16:15:40.1480701Z ##[debug]  C:\Agt2\_work\14 (directory)
[...]
2019-02-06T16:15:41.2684833Z ##[debug]  C:\Agt2\_work\14\s\node_modules\@angular\cli (directory)
2019-02-06T16:15:41.2692225Z ##[debug]  C:\Agt2\_work\14\s\node_modules\@angular\cli\.bin (directory)
2019-02-06T16:15:41.2779828Z ##[debug][SQ] Publish task error: Failed find: ENOENT: no such file or directory, stat 'C:\Agt2\_work\14\s\node_modules\@angular\cli\.bin\ng'
2019-02-06T16:15:41.2781059Z ##[debug]task result: Failed
2019-02-06T16:15:41.2782877Z ##[error]Failed find: ENOENT: no such file or directory, stat 'C:\Agt2\_work\14\s\node_modules\@angular\cli\.bin\ng'
第一个问题:为什么我在“准备分析”任务中将Sonar分析节点_模块添加到排除的文件中:

第二个问题:如果我将这些选项添加到“准备分析”任务的附加属性中,它似乎忽略了以下选项:

findOptions.followSpecifiedSymbolicLink='false'
findOptions.followSymbolicLinks:'false'
结果:

如何解决这个问题以获得单元测试结果并将其发布到sonarqube

编辑:在Sonar JIRA上创建的票据:

编辑2:声纳小组回答我,这与此错误类似:

最后,我发现了如何通过在构建工作流中添加新的powershell脚本来修复它

在这个powershell脚本中,我执行删除所有节点模块文件的
rimraf node_modules
脚本

这不是解决办法,只是暂时的解决办法


最后,我发现了如何通过在构建工作流中添加新的powershell脚本来修复它

在这个powershell脚本中,我执行删除所有节点模块文件的
rimraf node_modules
脚本

这不是解决办法,只是暂时的解决办法

findOptions.followSpecifiedSymbolicLink='false'
findOptions.followSymbolicLinks:'false'