我正在尝试为我的Azure网站进行持续集成,该网站使用grunt,npm和bower来构建。
我已按照此处的说明操作:http://www.cptloadtest.com/2013/12/03/Git-And-Grunt-Deploy-To-Windows-Azure.aspx并修改了我的deploy.sh部署部分以进行匹配。
部署时,我收到以下错误消息:
Command: bash deploy.sh
Handling node.js grunt deployment.
An error has occurred during web site deployment.
C:\Program Files (x86)\SiteExtensions\Kudu\45.40522.1562\bin\scripts\selectNodeVersion.js:115
select node version failed
throw new Error('Usage: node.exe selectNodeVersion.js <path_to_repo> <path
^
Error: Usage: node.exe selectNodeVersion.js <path_to_repo> <path_to_wwwroot> [path_to_temp]
at Object.<anonymous> (C:\Program Files (x86)\SiteExtensions\Kudu\45.40522.1562\bin\scripts\selectNodeVersion.js:115:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
有人知道我接下来会尝试什么吗?
答案 0 :(得分:0)
我在Visual Studio在线构建和部署时遇到了一些问题。我添加了一个命令行&#34; npm.cmd cache clean&#34;在我的构建定义的顶部。这使它成功了。也许这对你有帮助。