Node.JS WebApp部署失败,错误不明确

时间:2016-06-27 09:30:20

标签: node.js azure

我的网络应用程序没有任何问题。我对代码进行了更改并提交了代码。构建失败。所以我回到最后一个工作提交,其中构建成功并再次失败。我收到以下错误,但没有告诉我应该怎么做。

任何想法?

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling node.js deployment.
KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
Copying file: '.DS_Store'
Copying file: 'app.js'
Copying file: 'package.json'
Copying file: 'bin\www'
Copying file: 'js\auth.js'
Copying file: 'js\chargeServer.js'
Copying file: 'js\helper.js'
Copying file: 'js\requiresLogin.js'
Copying file: 'js\setup-passport.js'
Copying file: 'node_modules\.bin\needle'
Copying file: 'node_modules\auth0\.editorconfig'
Copying file: 'node_modules\auth0\.jshintrc'
Copying file: 'node_modules\auth0\.npmignore'
Copying file: 'node_modules\auth0\.travis.yml'
Copying file: 'node_modules\auth0\DEVELOPMENT.md'
Copying file: 'node_modules\auth0\LICENSE'
Copying file: 'node_modules\auth0\package.json'
Copying file: 'node_modules\auth0\README.md'
Copying file: 'node_modules\auth0\node_modules\bluebird\changelog.md'
Copying file: 'node_modules\auth0\node_modules\bluebird\LICENSE'
Copying file: 'node_modules\auth0\node_modules\bluebird\package.json'
Copying file: 'node_modules\auth0\node_modules\bluebird\README.md'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\browser\bluebird.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\browser\bluebird.min.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\any.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\assert.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\async.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\bind.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\bluebird.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\call_get.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\cancel.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\captured_trace.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\catch_filter.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\context.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\debuggability.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\direct_resolve.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\each.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\errors.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\es5.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\filter.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\finally.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\generators.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\join.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\map.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\method.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\nodeify.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\progress.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\promise.js'
Copying file: 'node_modules\auth0\node_modules\bluebird\js\main\promise_array.js'
Omitting next output lines...
Processed 997 files...
Processed 1919 files...
Processed 2706 files...
Processed 3668 files...
Node.js versions available on the platform are: 0.6.20, 0.8.2, 0.8.19, 0.8.26, 0.8.27, 0.8.28, 0.10.5, 0.10.18, 0.10.21, 0.10.24,     0.10.26, 0.10.28, 0.10.29, 0.10.31, 0.10.32, 0.10.40, 0.12.0, 0.12.2, 0.12.3, 0.12.6, 4.0.0, 4.1.0, 4.1.2, 4.2.1, 4.2.2, 4.2.3,     4.2.4, 4.3.0, 4.3.2, 4.4.0, 4.4.1, 5.0.0, 5.1.1, 5.3.0, 5.4.0, 5.5.0, 5.6.0, 5.7.0, 5.7.1, 5.8.0, 5.9.1, 6.0.0, 6.1.0.
Selected node.js version 5.9.1. Use package.json file to choose a different version.
Selected npm version 3.7.3
Updating iisnode.yml at D:\home\site\wwwroot\iisnode.yml
timebro@0.0.0 D:\home\site\wwwroot
`-- (empty)

npm ERR! code 1
Failed exitCode=1, command="D:\Program Files (x86)\nodejs\5.9.1\node.exe" "D:\Program Files (x86)\npm\3.7.3\node_modules\npm\bin\npm-    cli.js" install --production
An error has occurred during web site deployment.
npm ERR! code 1\r\nC:\Program Files (x86)\SiteExtensions\Kudu\55.50620.2286\bin\Scripts\starter.cmd     "D:\home\site\deployments\tools\deploy.cmd"

1 个答案:

答案 0 :(得分:1)

@ Silve2611我看到帖子内容最后三行的命令...\npm\bin\npm- cli.js" install --production有一些空白,如果它不是人为输入错误,我怀疑它会引起问题。

同时,我建议您在删除目录node_modules之后再尝试部署。

希望它有所帮助。