gpt4 book ai didi

node.js - Microsoft Azure 持续集成 - 使用 Grunt "Compile"步骤的 NodeJs 解决方案

转载 作者:太空宇宙 更新时间:2023-11-04 01:00:47 26 4
gpt4 key购买 nike

我的问题的一些先兆。

我的细节可能会有点冗长,但我只是想确保我不会遗漏任何可能导致问题的内容。 (我将在问题末尾附加完整的错误日志。但我不希望有人对此太过疯狂。我会尽力总结)

  1. 我使用 Yeoman 搭建了一个 AngularJS 项目。 .使用yo Angular命令。
  2. 然后我创建了 deploy.cmd.deployment 文件
  3. 将其推送到我在 Bitbucket 上的 git 存储库。 (仅提交根文件夹文件以及测试和应用文件夹)
  4. 从那里,通过网站快速设置将其链接到 Azure。
  5. 我的构建分为两部分:在部署期间安装 grunt 和 Bower(全局),然后在 npm 软件包安装期间安装 grunt 软件包
  6. 然后我需要尝试将 grunt build 作为 POST_DEPLOYMENT_ACTION 运行

package.json(产品依赖项)

    "dependencies": {
"grunt": "^0.4.1",
"grunt-autoprefixer": "^0.7.3",
"grunt-concurrent": "^0.5.0",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-concat": "^0.4.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-htmlmin": "^0.3.0",
"grunt-contrib-imagemin": "^0.8.1",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-filerev": "^0.2.1",
"grunt-google-cdn": "^0.4.0",
"grunt-newer": "^0.7.0",
"grunt-ng-annotate": "^0.3.0",
"grunt-svgmin": "^0.4.0",
"grunt-usemin": "^2.1.1",
"grunt-wiredep": "^1.7.0",
"jshint-stylish": "^0.2.0",
"load-grunt-tasks": "^0.4.0",
"time-grunt": "^0.3.1"
},

deployment.cmd(为简洁起见,省略了某些部分)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Deployment
:: ----------

:Deployment
echo Handling node.js deployment.

:: 1. Select node version
call :SelectNodeVersion

:: 2. Install bower packages
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
echo installing bower
call :ExecuteCmd !NPM_CMD! install -g bower
IF !ERRORLEVEL! NEQ 0 goto error
echo installing bower success
popd
)

:: 3. Install Grunt
IF EXIST "%DEPLOYMENT_TARGET%\Gruntfile.js" (
echo installing grunt-cli
call :ExecuteCmd !NPM_CMD! install -g grunt-cli
IF !ERRORLEVEL! NEQ 0 goto error
echo installing grunt-cli success
popd
)

:: 4. Install npm packages
IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
echo installing npm packages
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! install --production
IF !ERRORLEVEL! NEQ 0 goto error
echo installing npm packages
popd
)

:: 5. KuduSync
IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
IF !ERRORLEVEL! NEQ 0 goto error
)


:: Post deployment stub
IF DEFINED POST_DEPLOYMENT_ACTION (

echo "%POST_DEPLOYMENT_ACTION%"
echo %0

call :ExecuteCmd "%POST_DEPLOYMENT_ACTION%"
IF !ERRORLEVEL! NEQ 0 goto error
)

我有两个问题:就目前情况而言,我的构建失败并出现以下错误:

Error: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

我相信 grunt/它的一些依赖项是罪魁祸首,但我不知道如何克服这个障碍。我理解 Node 中的依赖管理如何工作的方式是它是一个嵌套结构,每个依赖项都有自己的 node_modules 文件夹......无限甚至更远。

第二个问题

Looking for app.js/server.js under site root.

Missing server.js/app.js files, web.config is not generated

我意识到 app.js 不在根目录中。我相信通过更改设置可以轻松修复此问题,但只有在解决方案在 Azure 上编译后我才能执行此操作,因为 app.js 将位于名为 dist 的文件夹中,该文件夹会在编译成功后创建.

完整的错误日志

    Command: deploy.cmd
Using custom deployment setting for POST_DEPLOYMENT_ACTION custom value is 'grunt build'.
Handling node.js deployment.
Looking for app.js/server.js under site root.
Missing server.js/app.js files, web.config is not generated
Node.js versions available on the platform are: 0.6.17, 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.
Selected node.js version 0.10.32. Use package.json file to choose a different version.
Updating iisnode.yml at D:\home\site\wwwroot\iisnode.yml
installing bower
C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\bower -> C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\node_modules\bower\bin\bower
<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f5979a829087b5c4dbc6dbc4c7" rel="noreferrer noopener nofollow">[email protected]</a> C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\node_modules\bower
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9bf2e8b6e9f4f4efdbaab5abb5ab" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="472d32292c077669776977" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="542720263d3a333d322d793b363e31372014657a647a64" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="19787b7b6b7c6f59283729372c" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781b1015171c0a384856495648" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1f6877767c775f2e312f312a" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="127d61777c6452223c233c22" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e38291808b9aa3d3cdd3cdd1" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0f607f614f3e213f213f" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1f6d76726d7e795f2d312d3127" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a68657d6f782766656d6d6f784a3a24382438" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cca0beb9e1afadafa4a98cfee2f9e2fc" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddbfb2aab8aff0b8b3b9adb2b4b3a9f0adbcafaeb8af9dedf3eff3ef" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5d3a2f3c3e383b2831703b2e1d6e736d7369" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bed2d1ddd5d8d7d2dbfe8f908e908e" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f3d2a3b3d360f7f6179617f" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="91fffee1e5d1a2bfa1bfa0" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="57233a2717677967796564" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddafb8aca8b8aea9f0adafb2baafb8aeae9dedf3eef3ed" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="32465a405d46465e575b4672021c021c00" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1766572639273926" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b5c6ddd0d9d998c4c0dac1d0f5849b819b87" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f09182829189dd96999c849582b0c0dec0dec1" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="34554646554d1946515041575174041a041a04" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3150434350481c5c504171011f011f01" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4329302c2d2a253a03736d736d73" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e08388818c8ba0d0ced5ced0" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bedbcddddfcedb93cdcaccd7d0d993ccdbd9dbc6cefe8f908e908c" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c6a7a8b5afebb5b2bfaaa3b586f7e8f7e8f6" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="01727471716e7375722c626e6d6e7341312f332f31" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ee9d9a9c879ec38f809d87aedec0ddc0de" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3a525b49175b5449537a0a140b140a" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2754424a514255671509140915" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="224451565047434f62130c120c10" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6d040305081f04191e2d5f435d435c" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="10727f6775623d7a637f7e50203e243e20" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3e57504a5b4c4d5b5d4a7e0e100e100d" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c7879796c317964687972785c2c322e322d2d" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90f7e2f1f3f5f6e5fcbdf6e3d0a2bea0bea3" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b1b461f0319041f1f070e192b5b455a455b" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdbc8dfde3f4e3fa" rel="noreferrer noopener nofollow">[email protected]</a>)
├��─ <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="49393b2624393d25300979677b6779" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="780a1d191c38495648564d" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="076a6c636e7577473729322937" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="95f8fcfbfcf8fce6e1d5a5bba5bbad" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7f190c0b0d1a1e1252161811100d1a3f4e514f514e" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="026b6c6a67706b767142302c322c33" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f99490979094988d9a91b9c8d7c9d7c9" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a3c1ccd4c6d18ec0cccdc5cac4e3938d968d91" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94fbe7f1fae2d4a4baa4baa7" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7e190c1f1d1b180b1253180d3e4c504e504d" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="711e0105181c18020531415f475f40" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="205441520d465360100e150e12" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bbcbced6cbfb8b9588958e" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1d5c0d38cd2d5d3c4c0cce1918f958f96" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dfbbbabcb0b2afadbaacacf2a5b6af9feff1eff1e7" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="224f495243564a62120c130c12" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d23223d390d7f637f637c" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b6f746e78735b2b352b3529" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="116374707570737d743c62656374707c51203f203f2022" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bfddd6d1decdc6ff8f918c918f" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1c6cdcec3e1958f918f97" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="365f585e53445f4245760418061807" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e689888583a6d7c8d5c8d7" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b66626562666a7f68634b3a253b253b" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d9abbca8acbcaaad99ebf7edebf7e9" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="55363426303930262615657b637b65" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="83e9f0ecedaef0f7f1eaede4eae5faaef0e2e5e6c3b6adb3adb3" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ed8b829f889b889fc08c8a888399adddc3d8c3df" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b0a1c184618020c05592b5b455e455b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c4b7b0b6adaaa3b7b0b6a1a5a984f4eaf4eaf0" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5cac4d0d1cd88d6ccc2cbe5958b918b95" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d3a7a6bdbdb6bffeb2b4b6bda793e3fde7fde3" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="600e0f04054d1515090420514e544e51" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ef9e9cafdec1ddc1dd" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a9c4c0c4cc84ddd0d9ccdae9988799879b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4c2a233e2161282d382d0c7c627d6278" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="73111f33435d4a5d40" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d5942584a45004e42424644486d1d031c1f031c" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="68001c1c18451b010f06091c1d1a0d28584659584658" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddb5bcaab69decf3ecf3ec" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e7c71697b6c336c7b79776d6a6c67337d72777b706a5e2e302c302f" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="32554053515754475e1f544172001c021c01" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b495e4a4e5e484f16495e4b575a427b0b1509150b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d6baa4a3fbb5b7b5beb396e4f8e5f8e7" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6302101a0d0023534d514d5253" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3f52545b564d4f7f0f110c110a" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8bf9eefafeeef8ffcbb9a5b9bca5bb" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5033312234393e313c10607e647e60" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8dacdcccdd1cdcce898869c869c" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="84f1f4e0e5f0e1a9eaebf0ede2ede1f6c4b4aab6aab4" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="85f6e0e8f3e0f7a8e1ece3e3c5b5abb4abb5" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f58681879c9b92d899909b92819db5c5dbc4dbc7" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="630f02170610174e150611100a0c0d23534d514d53" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f3c30313936382c2b302d3a1f6f716c716e" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a77756f6e5a2a3423342b" rel="noreferrer noopener nofollow">[email protected]</a>
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b8d0d9d6dcd4dddad9cacbf88a96889688" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c637c786561657f784c3c223f223b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8cf9ebe0e5eaf5a1e6ffccbea2bfa2ba" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3d54534c48544f584f7d0d130a130c" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cfa9a6a8babdaabc8ffee1fce1fc" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2f425a5b4a025c5b5d4a4e426f1f011f011b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="116579637e64767951233f223f27" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88faede9ece4e1e6edbac8b8a6b9a6b8" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa96959e9b8992bac8d4ced4cb" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b2c0caf2809c819c8386" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94f7f8fdb9f7fbf8fbe6d4a4baa7baa6" rel="noreferrer noopener nofollow">[email protected]</a>)
└── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9bf2f5e8f2fcf3efdbabb5afb5a8" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b4dbd6ded1d7c099d5c7c7ddd3daf4859a849a84" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5233212b3c3112627c6b7c62" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f2919a939e99b2c2dcc7dcc3" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa9589d7949b979fbacbd4cad4cb" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a66656e6b7962246e6f68657f64696f4a38243e243b" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="82f6edf7e5eaafe1edede9ebe7c2b2acb3b0acb3" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcbfb3b2bab5bbafa8b3aeb99cecf2eff2ed" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="afc6c1dedac6ddcaddef9f8199819f" rel="noreferrer noopener nofollow">[email protected]</a>)
installing bower success
installing grunt-cli
C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\grunt -> C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\node_modules\grunt-cli\bin\grunt
<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8cfdaddc6dc85cbc4c1e898869986999b" rel="noreferrer noopener nofollow">[email protected]</a> C:\DWASFiles\Sites\~1businessintelligenceadviser\AppData\npm\node_modules\grunt-cli
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781617080c38495648564948" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5c4c7c7d7c0d3e5948b958b90" rel="noreferrer noopener nofollow">[email protected]</a>)
├── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2f5d4a5c4043594a6f1f011c011e" rel="noreferrer noopener nofollow">[email protected]</a>
└── <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4026292e2435306d33392e2300706e716e73" rel="noreferrer noopener nofollow">[email protected]</a> (<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="11767d7e7351223f233f2020" rel="noreferrer noopener nofollow">[email protected]</a>, <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="670b080306140f275549534956" rel="noreferrer noopener nofollow">[email protected]</a>)
installing grunt-cli success
installing npm packages
npm WARN package.json <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="375542445e595244445e5943525b5b5e50525954525653415e445245770719071907" rel="noreferrer noopener nofollow">[email protected]</a> No description
npm WARN package.json <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="771502041e191204041e1903121b1b1e10121914121613011e041205374759475947" rel="noreferrer noopener nofollow">[email protected]</a> No repository field.
npm WARN package.json <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c1a3b4b2a8afa4b2b2a8afb5a4adada8a6a4afa2a4a0a5b7a8b2a4b381f1eff1eff1" rel="noreferrer noopener nofollow">[email protected]</a> No README data
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\meow requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\bin-version-check\node_modules\bin-version\node_modules\find-versions requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\download\node_modules\decompress-tar requires vinyl@'^0.4.3' but will load
npm WARN unmet dependency undefined,
installing npm packages
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\download\node_modules\decompress-tarbz2 requires vinyl@'^0.4.3' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\download\node_modules\decompress-targz requires vinyl@'^0.4.3' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\download\node_modules\decompress-unzip requires vinyl@'^0.4.3' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\download\node_modules\vinyl-fs requires vinyl@'^0.4.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\node_modules\bin-build\node_modules\download\node_modules\vinyl-fs\node_modules\glob-stream\node_modules\glob2base requires lodash@'^2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\meow requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\node_modules\bin-wrapper\node_modules\bin-version-check\node_modules\bin-version\node_modules\find-versions requires minimist@'^1.1.0' but will load
npm WARN unmet dependency undefined,
KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
Copying file: 'node_modules\grunt-autoprefixer\.travis.yml'
npm WARN unmet dependency which is version undefined
Copying file: 'node_modules\grunt-autoprefixer\CHANGELOG'
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-pngquant\node_modules\pngquant-bin\node_modules\bin-build\node_modules\download\node_modules\meow\node_modules\indent-string requires minimist@'^1.1.0' but will load
Copying file: 'node_modules\grunt-autoprefixer\LICENSE-MIT'
npm WARN unmet dependency undefined,
Copying file: 'node_modules\grunt-autoprefixer\package.json'
npm WARN unmet dependency which is version undefined
Copying file: 'node_modules\grunt-autoprefixer\README.md'
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-pngquant\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string requires minimist@'^1.1.0' but will load
Copying file: 'node_modules\grunt-autoprefixer\node_modules\.bin\autoprefixer'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\.bin\autoprefixer.cmd'
npm WARN unmet dependency undefined,
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\ChangeLog.md'
npm WARN unmet dependency which is version undefined
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\LICENSE'
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-pngquant\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules\bin-check\node_modules\executable\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\meow requires minimist@'^1.1.0' but will load
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\package.json'
npm WARN unmet dependency undefined,
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\README.md'
npm WARN unmet dependency which is version undefined
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\bin\autoprefixer'
npm WARN unmet dependency D:\home\site\wwwroot\node_modules\grunt-contrib-imagemin\node_modules\imagemin\node_modules\imagemin-pngquant\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules\download\node_modules\meow\node_modules\indent-string requires minimist@'^1.1.0' but will load
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\data\browsers.js'
npm WARN unmet dependency undefined,
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\data\prefixes.js'
npm WARN unmet dependency which is version undefined
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\autoprefixer.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\binary.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\browsers.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\caniuse.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\declaration.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\info.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\keyframes.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\old-selector.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\old-value.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\prefixer.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\prefixes.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\processor.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\selector.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\utils.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\value.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\align-content.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\align-items.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\align-self.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\background-size.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\border-image.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\border-radius.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\break-inside.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\display-flex.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\fill-available.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\filter.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-basis.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-direction.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-flow.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-grow.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-shrink.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-spec.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex-wrap.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\flex.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\fullscreen.js'
Copying file: 'node_modules\grunt-autoprefixer\node_modules\autoprefixer\lib\hacks\gradient.js'
Omitting next output lines...
Processed 975 files...
Error: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Failed exitCode=1, command="kudusync" -v 50 -f "D:\home\site\repository" -t "D:\home\site\wwwroot" -n "D:\home\site\deployments\360cd39f800d7a19bf82bb41d4bd85830829a303\manifest" -p "D:\home\site\deployments\8ff648ca5da1071c0480e2ad3aa8a82eafeccb00\manifest" -i ".git;.hg;.deployment;deploy.cmd"
An error has occurred during web site deployment.

最佳答案

我在 Grunt 工作中也遇到过路径错误。似乎是 Windows 问题,并且没有任何简单/好的解决方案。

我们在 Grunt 工作中所做的事情之一是在 Windows 中大量使用符号链接(symbolic link)。 http://technet.microsoft.com/en-us/library/cc753194.aspx

例如,我们一次性将所有 Grunt 依赖项安装在一个目录中,然后创建符号链接(symbolic link)作为该目录构建的一部分。这可能有助于解决长目录/文件名问题。

对第二个问题不太清楚,但如果文件存在于其他地方,mklink 也可能提供帮助。

关于node.js - Microsoft Azure 持续集成 - 使用 Grunt "Compile"步骤的 NodeJs 解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26909686/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com