jenkins - 詹金斯+没有这样的财产:npm for class:groovy.lang.Binding
问题描述
我在詹金斯管道中有以下代码
stage("Install Dependencies") {
configFileProvider([configFile(fileId: "test.npmrepo.readonly", targetLocation: "${WORKSPACE}/.npmrepo")]){}
withEnv(["HOME=."]){
script {
sh “npm ci”
sh "git checkout -- .npmrepo"
}
} }
如屏幕截图所示,我收到错误消息,我猜问题出在“npm ci”,请告知
Jenkins 控制台中的错误:
解决方案
推荐阅读
- html - 出现错误:“BsDropdownDirective”既不是“ComponentType”也不是“DirectiveType”
- android - 如何使用 Fused Location 订阅提供者状态更改事件?
- excel - 我只有在 Mac 上出现 VBA 错误 91,在 Windows 上没有
- php - 用户帐户 Xampp
- wxwidgets - 在 wxWidgets 中关闭框架的正确方法是什么
- java - 在 Android 上横向时字体大小不会更改
- plotly - 将图形大小调整为其中的指示器
- php - php特殊字符验证
- apache-kafka - 缺少融合平台连接器
- android - Retrofit 是否支持将 JSON 作为参数传递,但将其称为普通参数?