Развертывание Git на веб-сайтах Azure: сбой установки npm Bower

Так что это, безусловно, интересная ситуация. У вас есть сайт ASP.NET MVC4, использующий bower и gulp. У меня есть этот сайт, подключенный к GitHub и использующий непрерывную интеграцию Azure. Это отлично работало из коробки, пока я не захотел также интегрировать свои gulp-задачи в автоматизированный процесс сборки.

Итак, я пошел дальше и установил инструменты Azure CLI через npm. Затем я смог создать собственный сценарий развертывания (deploy.cmd). Благодаря этому я смог отредактировать его и добавить несколько пользовательских сценариев, которые я нашел, запросив лучший способ выполнить установку npm, установку Bower и задачи gulp через Azure. В частности, вот что я добавил (если вам интересно):

:: NPM
echo Moving to source directory
pushd "source\MeMeMe.Web"

echo Installing npm packages: Starting %TIME%
call :ExecuteCmd npm install
echo Installing npm packages: Finished %TIME%
IF !ERRORLEVEL! NEQ 0 goto error

:: Bower
echo Installing bower packages: Starting %TIME%
call :ExecuteCmd "bower" install
echo Installing bower packages: Finished %TIME%
IF !ERRORLEVEL! NEQ 0 goto error

:: Gulp
echo Running Gulp: Starting %TIME%
call :ExecuteCmd "gulp"
echo Running Gulp: Finished %TIME%

echo Publishing dist folder files to temporary deployment location
call :ExecuteCmd "xcopy" "%DEPLOYMENT_SOURCE%\source\MeMeMe.Web\dist\*.*" "%DEPLOYMENT_TEMP%\dist" /S /Y /I
echo Done publishing dist folder files to temporary deployment location

IF !ERRORLEVEL! NEQ 0 goto error

:: Heading back to the stock KuduSync that follows
echo Moving back from source directory
popd

Теперь, кстати, в мой package.json НЕ включен Bower. Я читал слухи о том, что на веб-сайтах Azure глобальная установка Bower... но пока это не сработало. Каждый раз, когда я пытаюсь развернуть пакет без Bower, мой журнал npm перестает запрашивать его внутри каталога .bin, но безрезультатно.

Поэтому, чтобы смягчить эту проблему, я (неохотно) добавил Bower в качестве зависимости в свой package.json и проверил код.

Примерно через 6 минут сборки в Azure происходит сбой процесса. В журнале npm мы видим множество ошибок npm, подобных этой:

npm ОШИБКА! enoent ENOENT: нет такого файла или каталога, переименуйте

А под переименованием очень долгий путь. Так что Bower не устанавливается.

Кто-нибудь знает какие-либо обходные пути для этого? Разумеется, без необходимости устанавливать Bower в качестве зависимости и затем проверять node_modules в Git. Я теряюсь в альтернативах.

РЕДАКТИРОВАТЬ: Вот полный журнал (я изменил имя своего клиента на MeMeMe, FWIW):

Command: deploy.cmd
Handling .NET Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'.
All packages listed in packages.config are already installed.
  MeMeMe.Core -> D:\home\site\repository\source\MeMeMe.Core\bin\Release\MeMeMe.Core.dll
  No way to resolve conflict between "System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.
  No way to resolve conflict between "System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.
  Consider app.config remapping of assembly "System.Web.Mvc, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.0.0.0" [] to Version "5.2.3.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Web.Razor, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [d:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.Razor.dll] to Version "3.0.0.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Microsoft.Owin, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [D:\home\site\repository\source\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Web.Http, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "4.0.0.0" [] to Version "5.2.3.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "4.5.0.0" [] to Version "6.0.0.0" [D:\home\site\repository\source\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Net.Http.Formatting, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "4.0.0.0" [] to Version "5.2.3.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Web.WebPages.Razor, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [d:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.WebPages.Razor.dll] to Version "3.0.0.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Microsoft.Owin.Security, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [D:\home\site\repository\source\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Web.WebPages.Deployment, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [d:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.WebPages.Deployment.dll] to Version "3.0.0.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "MySql.Data, Culture=neutral, PublicKeyToken=c5687fc88969c44d" from Version "6.9.7.0" [] to Version "6.9.8.0" [D:\home\site\repository\source\packages\MySql.Data.6.9.8\lib\net45\MySql.Data.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Microsoft.Owin.Security.OAuth, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [D:\home\site\repository\source\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Microsoft.Owin.Security.Cookies, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [D:\home\site\repository\source\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "System.Web.WebPages, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [d:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.WebPages.dll] to Version "3.0.0.0" [D:\home\site\repository\source\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll] to solve conflict and get rid of warning.
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Mvc" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Razor" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Http" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Http.Formatting" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.WebPages.Razor" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.WebPages.Deployment" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="MySql.Data" culture="neutral" publicKeyToken="c5687fc88969c44d" /><bindingRedirect oldVersion="0.0.0.0-6.9.8.0" newVersion="6.9.8.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.OAuth" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.Cookies" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.WebPages" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /></dependentAssembly></assemblyBinding> [D:\home\site\repository\source\MeMeMe.Data\MeMeMe.Data.csproj]
  MeMeMe.Data -> D:\home\site\repository\source\MeMeMe.Data\bin\Release\MeMeMe.Data.dll
  MeMeMe.Web -> D:\home\site\repository\source\MeMeMe.Web\bin\MeMeMe.Web.dll
  Transformed Web.config using D:\home\site\repository\source\MeMeMe.Web\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
  Copying all files to temporary location below for package/publish:
  D:\local\Temp\8d31a1b73c1e2d3.
Moving to source directory
Installing npm packages: Starting  0:10:45.63
npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
[email protected] D:\home\site\repository\source\MeMeMe.Web
+-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ ¦   ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-?? [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ??-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦     +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ ¦ +-- [email protected] 
¦ ¦ ¦ +-- [email protected] 
¦ ¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ ¦     +-- [email protected] 
¦ ¦     +-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦     +-- [email protected] 
+-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   ¦   ¦ +-- [email protected] 
¦   ¦   ¦ +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   ¦   ¦ +-- [email protected] 
¦   ¦   ¦ +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦     +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   ¦ +-- [email protected] 
¦   ¦ ¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦   +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   ¦ +-- [email protected] 
¦   ¦ ¦   ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ?? ¦     +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦   +-- [email protected] 
¦   ¦     +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ ¦   +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   ¦ +-- [email protected] 
¦   +-- [email protected] 
¦     +-- [email protected] 
¦     +-- [email protected] 
¦     +-- [email protected] 
¦       +-- [email protected] 
¦       ¦ +-- [email protected] 
¦       +-- [email protected] 
¦       ¦ +-- [email protected] 
¦       ¦   +-- [email protected] 
¦       +-- [email protected] 
¦       ¦ +-- [email protected] 
¦       ¦ ¦ +-- [email protected] 
¦       ¦ +-- [email protected] 
¦       +-- [email protected] 
¦       +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ ¦   ¦ +-- [email protected] 
¦ ¦   ¦ ¦ +-- [email protected] 
¦ ¦   ¦ ¦ ¦ +-- [email protected] 
¦ ¦   ¦ ¦ ¦ +-- [email protected] 
¦ ¦   ¦ ¦ ¦ +-- [email protected] 
¦ ¦   ¦ ¦ +-- [email protected] 
¦ ¦   ¦ +-- [email protected] 
¦ ¦   +-- [email protected] 
¦ +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ ¦ +-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
¦ +-- [email protected] 
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
¦ +-- [email protected] 
npm WARN [email protected] No description
¦ ¦ +-- [email protected] 
npm WARN [email protected] No repository field.
npm ERR! Windows_NT 6.2.9200
¦ ¦ +-- [email protected] 
npm ERR! argv "D:\\Program Files (x86)\\nodejs\\4.2.3\\node.exe" "D:\\Program Files (x86)\\npm\\3.5.1\\node_modules\\npm\\bin\\npm-cli.js" "install"
¦ ¦ +-- [email protected] 
npm ERR! node v4.2.3
¦ ¦ +-- [email protected] 
npm ERR! npm  v3.5.1
¦ ¦ +-- [email protected] 
npm ERR! path D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3
¦ ¦ +-- [email protected] 
npm ERR! code ENOENT
¦ ¦ ¦ +-- [email protected] 
npm ERR! errno -4058
¦ ¦ ¦ +-- [email protected] 
npm ERR! syscall rename
¦ ¦ ¦ +-- [email protected] 

¦ ¦ +-- [email protected] 
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3' -> 'D:\home\site\repository\source\MeMeMe.Web\node_modules\bower\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\create-error-class\node_modules\capture-stack-trace'
¦ ¦ +-- [email protected] 
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3' -> 'D:\home\site\repository\source\MeMeMe.Web\node_modules\bower\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\create-error-class\node_modules\capture-stack-trace'
¦ +-- [email protected] 
npm ERR! enoent This is most likely not a problem with npm itself
¦ ¦ +-- [email protected] 
npm ERR! enoent and is related to npm not being able to find a file.
¦ +-- [email protected] 
npm ERR! enoent 
¦ +-- [email protected] 

¦ +-- [email protected] 
npm ERR! Please include the following file with any support request:
¦   +-- [email protected] 
npm ERR!     D:\home\site\repository\source\MeMeMe.Web\npm-debug.log
+-- [email protected] 
¦ +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
+-- [email protected] 
¦ +-- [email protected] 
¦   +-- [email protected] 
+-- [email protected] 
+??- [email protected]  extraneous
+-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦   +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  ¦ +-- [email protected] 
  ¦ +-- [email protected] 
  ¦   +-- [email protected] 
  ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ ¦ +-- [email protected] 
  ¦   ¦   ¦ ¦   +-- [email protected] 
  ¦   ¦   ¦ ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ ¦   +-- [email protected] 
  ¦   ¦   ¦ ¦     +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ ¦ +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +??- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ ¦ +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   ¦ +-- [email protected] 
  ¦   ¦   +-- [email protected] 
  ¦   ¦     +-- [email protected] 
  ¦   ¦     +-- [email protected] 
  ¦   +-- [email protected] 
  ¦   +-- [email protected] 
  ¦   +-- [email protected] 
  ¦   ¦ +-- [email protected] 
  ¦   +-- [email protected] 
  ¦   ¦ +-- [email protected] 
  ¦   +-- [email protected] 
  ¦     +-- [email protected] 
  ¦     +-- [email protected] 
  +-- [email protected] 
    +-- [email protected] 
    +-- [email protected] 
      +-- [email protected] 

Failed exitCode=-4058, command=npm install
Installing npm packages: Finished  0:18:35.21
An error has occurred during web site deployment.

person StephenPAdams    schedule 11.01.2016    source источник
comment
Вы можете пройти полный журнал развертывания? также, если вы перейдете на свой сайт scm https://{your site name}.scm.azurewebsites.net/DebugConsole и перейдете к D:\home\LogFiles\kudu\trace, проверьте журнал, который содержит ключевое слово Deploy, чтобы увидеть, есть ли какие-либо дополнительные ошибки.   -  person Xiaomin Wu    schedule 11.01.2016
comment
Привет @XiaominWu, я добавил журнал. Спасибо.   -  person StephenPAdams    schedule 12.01.2016
comment
Кстати, когда локально я предполагаю, что приложение работает нормально для вас? какую версию узла вы используете локально?   -  person Xiaomin Wu    schedule 12.01.2016
comment
Правильный. Работает нормально. НПМ 2.5.1. Узел 0.12.0.   -  person StephenPAdams    schedule 12.01.2016


Ответы (1)


Я предполагаю, что вы можете достичь ограничения максимальной длины пути к файлу.

npm ERR! enoent ENOENT: no such file or directory, rename 'D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3' -> 'D:\home\site\repository\source\MeMeMe.Web\node_modules\bower\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\create-error-class\node_modules\capture-stack-trace'

из приведенного выше журнала, можете ли вы проверить, есть ли какой-либо путь к файлу под D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3 длиной более 256 символов?

person Xiaomin Wu    schedule 12.01.2016
comment
Попробую другую сборку и посмотрю. Этот каталог .staging является временным, поэтому я буду следить за ним. Сборка занимает около 5-6 минут, так что у меня будет много времени. Если мы достигнем максимального предела длины... какие-нибудь рекомендации, как это обойти? - person StephenPAdams; 12.01.2016
comment
@StephenPAdams из того, что я узнал, NPM 3 должен сгладить всю зависимость. если вы можете подтвердить, что вы достигли предела длины файла, попробуйте обновить, чтобы использовать npm3, который, я думаю, вам придется использовать более новую версию nodejs. azure.microsoft.com/en-us/documentation/articles/ - person Xiaomin Wu; 13.01.2016