admin管理员组文章数量:1416631
I am getting a syntax error when trying to execute the "npm" mand
Users/Shared/Jenkins/Home/workspace/projectName/npm test
^^^^
SyntaxError: Unexpected identifier
Here is the Jenkins Build shell mand that I used:
#!/usr/local/bin/node
Users/Shared/Jenkins/Home/workspace/kaleidoscope/npm test
Can anyone explain what happened?
I am getting a syntax error when trying to execute the "npm" mand
Users/Shared/Jenkins/Home/workspace/projectName/npm test
^^^^
SyntaxError: Unexpected identifier
Here is the Jenkins Build shell mand that I used:
#!/usr/local/bin/node
Users/Shared/Jenkins/Home/workspace/kaleidoscope/npm test
Can anyone explain what happened?
Share Improve this question edited Mar 21, 2018 at 20:24 Marvin 2291 gold badge3 silver badges11 bronze badges asked Mar 21, 2018 at 19:17 LysertyLyserty 3454 silver badges14 bronze badges 1-
what output does
sh('which npm')
have? – FCh Commented Mar 21, 2018 at 19:30
1 Answer
Reset to default 3This stack question basically gave me an answer. I didn't't install NodeJS plugin.
how to run npm/grunt mand from jenkins
So, to trigger npm mands in Jenkins install and configure NodeJS plugin. https://wiki.jenkins.io/display/JENKINS/NodeJS+Plugin
本文标签: javascriptHow to execute NPM command in Jenkins via shellStack Overflow
版权声明:本文标题:javascript - How to execute NPM command in Jenkins via shell - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745256641a2650142.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论