Cor*_*dle 6 azure node.js npm bower
我正在使用Azure来部署Node.js Web应用程序.我挂Github上我的部署回购,并成立了deploy.sh在杰伊·哈里斯的网页提到:http://www.cptloadtest.com/2013/12/03/Git-And-Grunt-Deploy-To- Windows的Azure.aspx
我的应用程序依赖于bower,但是当它尝试部署时,我得到了一个bower失败错误.以下是Azure日志的输出:
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/amdefine
C:\DWASFiles\Sites\videogelpub\AppData\npm\bower -> C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower\bin\bower
bower@1.3.1 C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower
??? is-root@0.1.0
??? junk@0.2.2
error: could not lock config file d:/home/.gitconfig: Permission denied
??? stringify-object@0.2.0
??? abbrev@1.0.4
??? chmodr@0.1.0
??? which@1.0.5
??? osenv@0.0.3
??? archy@0.0.2
??? graceful-fs@2.0.3
??? rimraf@2.2.6
??? open@0.0.4
??? bower-endpoint-parser@0.2.1
??? lru-cache@2.5.0
??? bower-logger@0.2.2
??? nopt@2.1.2
??? retry@0.6.0
??? mkdirp@0.3.5
??? tmp@0.0.23
??? chalk@0.4.0 (has-color@0.1.4, ansi-styles@1.0.0, strip-ansi@0.1.1)
??? q@1.0.1
??? request-progress@0.3.1 (throttleit@0.0.2)
??? shell-quote@1.4.1 (array-filter@0.0.1, array-map@0.0.0, array-reduce@0.0.0, jsonify@0.0.0)
??? bower-json@0.4.0 (deep-extend@0.2.8, intersect@0.0.3)
??? semver@2.2.1
??? p-throttler@0.0.1 (q@0.9.7)
??? fstream@0.1.25 (inherits@2.0.1)
??? promptly@0.2.0 (read@1.0.5)
??? fstream-ignore@0.0.7 (inherits@2.0.1, minimatch@0.2.14)
??? tar@0.1.19 (inherits@2.0.1, block-stream@0.0.7)
??? glob@3.2.9 (inherits@2.0.1, minimatch@0.2.14)
??? decompress-zip@0.0.5 (nopt@2.2.0, mkpath@0.1.0, touch@0.0.2, readable-stream@1.1.12, binary@0.3.0)
??? request@2.33.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, oauth-sign@0.3.0, tunnel-agent@0.3.0, node-uuid@1.4.1, mime@1.2.11, form-data@0.1.2, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0)
??? cardinal@0.4.4 (ansicolors@0.2.1, redeyed@0.4.4)
??? inquirer@0.4.1 (readline2@0.1.0, mute-stream@0.0.4, through@2.3.4, async@0.2.10, lodash@2.4.1, cli-color@0.2.3)
??? update-notifier@0.1.8 (semver@2.1.0, request@2.27.0, configstore@0.2.3)
??? handlebars@1.3.0 (optimist@0.3.7, uglify-js@2.3.6)
??? bower-config@0.5.0 (optimist@0.6.1, mout@0.6.0)
??? mout@0.9.0
??? insight@0.3.1 (object-assign@0.1.2, async@0.2.10, lodash.debounce@2.4.1, request@2.27.0, configstore@0.2.3)
??? bower-registry-client@0.1.6 (request-replay@0.2.0, lru-cache@2.3.1, async@0.2.10, request@2.27.0, bower-config@0.4.5)
bower angular#1.2.11 not-cached git://github.com/angular/bower-angular.git#1.2.11
bower angular#1.2.11 resolve git://github.com/angular/bower-angular.git#1.2.11
bower json3#~3.2.6 not-cached git://github.com/bestiejs/json3.git#~3.2.6
bower json3#~3.2.6 resolve git://github.com/bestiejs/json3.git#~3.2.6
bower es5-shim#~2.1.0 not-cached git://github.com/es-shims/es5-shim.git#~2.1.0
bower es5-shim#~2.1.0 resolve git://github.com/es-shims/es5-shim.git#~2.1.0
bower jquery#~1.11.0 not-cached git://github.com/jquery/jquery.git#~1.11.0
bower jquery#~1.11.0 resolve git://github.com/jquery/jquery.git#~1.11.0
bower angular-cookies#1.2.11 not-cached git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-cookies#1.2.11 resolve git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-route#1.2.11 not-cached git://github.com/angular/bower-angular-route.git#1.2.11
bower angular-route#1.2.11 resolve git://github.com/angular/bower-angular-route.git#1.2.11
bower querystring#~3.24.10 not-cached git://github.com/anodynos/node2web_querystring.git#~3.24.10
bower querystring#~3.24.10 resolve git://github.com/anodynos/node2web_querystring.git#~3.24.10
bower bootstrap#~3.0.3 cached git://github.com/twbs/bootstrap.git#3.0.3
bower bootstrap#~3.0.3 validate 3.0.3 against git://github.com/twbs/bootstrap.git#~3.0.3
bower angular-resource#1.2.11 cached git://github.com/angular/bower-angular-resource.git#1.2.11
bower angular-resource#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-resource.git#1.2.11
bower angular-sanitize#1.2.11 cached git://github.com/angular/bower-angular-sanitize.git#1.2.11
bower angular-sanitize#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-sanitize.git#1.2.11
bower underscore#~1.6.0 cached git://github.com/jashkenas/underscore.git#1.6.0
bower underscore#~1.6.0 validate 1.6.0 against git://github.com/jashkenas/underscore.git#~1.6.0
bower angular-mocks#1.2.11 cached git://github.com/angular/bower-angular-mocks.git#1.2.11
bower angular-mocks#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-mocks.git#1.2.11
bower angular-scenario#1.2.11 cached git://github.com/angular/bower-angular-scenario.git#1.2.11
bower angular-scenario#1.2.11 validate 1.2.11 against git://github.com/angular/bower-angular-scenario.git#1.2.11
bower json3#~3.2.6 download https://github.com/bestiejs/json3/archive/v3.2.6.tar.gz
bower angular-cookies#1.2.11 download https://github.com/angular/bower-angular-cookies/archive/v1.2.11.tar.gz
bower angular-route#1.2.11 download https://github.com/angular/bower-angular-route/archive/v1.2.11.tar.gz
bower angular#1.2.11 download https://github.com/angular/bower-angular/archive/v1.2.11.tar.gz
bower angular-cookies#1.2.11 extract archive.tar.gz
bower angular-cookies#1.2.11 resolved git://github.com/angular/bower-angular-cookies.git#1.2.11
bower angular-route#1.2.11 extract archive.tar.gz
bower angular-route#1.2.11 resolved git://github.com/angular/bower-angular-route.git#1.2.11
bower angular#1.2.11 extract archive.tar.gz
bower angular#1.2.11 resolved git://github.com/angular/bower-angular.git#1.2.11
bower json3#~3.2.6 progress received 3.0MB of 4.9MB downloaded, 60%
bower json3#~3.2.6 progress received 4.0MB of 4.9MB downloaded, 82%
bower json3#~3.2.6 extract archive.tar.gz
An error has occurred during web site deployment.
bower failed
Run Code Online (Sandbox Code Playgroud)
无法弄清楚这一点.
我自己处理这个问题后发现了你的问题,并且在网上没有找到任何资源。我使用了您在链接中列出的非常相似的部署文件和脚本,但遇到了与您列出的类似的错误。
这很令人困惑,因为 Azure 日志显示所有内容都是从 Bower.json 文件安装的,并且仅在最后出现错误。
首先,确保 npm(node_modules 文件夹)中有 Bower。看来你是这么做的。
其次,bower install
在命令行中运行。就我而言,它安装了所有内容,但最后给出了以下消息:
我选择了选项 3,因为它是 Angular 的最新版本,并且我认为它与其他版本向后兼容。爆炸 (!) 将其添加到 Bower.json 文件夹中。我提交了,推送到我的存储库,并在 Azure 上重新部署......这一次,它部署没有错误!
归档时间: |
|
查看次数: |
1168 次 |
最近记录: |