0
votes

So this is certainly an interesting situation. Have an ASP.NET MVC4 site which is leveraging bower and gulp. I have this site hooked into GitHub and using Azure's continuous integration. This worked perfectly fine out of box until I wanted to also integrate my gulp tasks into the automated build process.

So, I went ahead and installed the Azure CLI tools through npm. I was then able to generate a custom deployment script (deploy.cmd). Through that, I was able to edit it and add some custom scripts I found through querying the best way to accomplish npm installs, bower installs and gulp tasks through Azure. In particular, here's what I added (in case you're curious):

:: 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

Now, as an aside, my package.json does NOT have bower included in it. I've read rumblings out there that Azure Websites have bower installed globally...but so far this had not worked. Every time I try a deploy without bower as a package, my npm log falls over asking for it inside the .bin directory to no avail.

So to mitigate that issue I (begrudgingly) added bower as a dependency in my package.json and checked in the code.

After about 6 minutes of building on Azure, the process fails. In the npm log, we see numerous npm errors like this one:

npm ERR! enoent ENOENT: no such file or directory, rename

And under rename is a very long path. So bower doesn't install.

Is anyone aware of any workarounds to this? Without having to install bower as a dependency and then checking in node_modules into Git, of course. I'm at a loss to alternatives.

EDIT: Here's the full log (I changed the name of my client to 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.
1
can you past the full deployment log? also if you go to your scm site https://{your site name}.scm.azurewebsites.net/DebugConsole and navigate to D:\home\LogFiles\kudu\trace, check log that contains Deploy keyword, to see if there is any extra errors.Xiaomin Wu
Hi @XiaominWu I added the log. Thanks.StephenPAdams
BTW, when locally i assume the app is running fine for you? what version of node do you use locally?Xiaomin Wu
Correct. Does work fine. NPM is 2.5.1. Node is 0.12.0.StephenPAdams

1 Answers

1
votes

my guess is you might hitting file path max length limit.

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'

from above log, can you check if there is any file path under D:\home\site\repository\source\MeMeMe.Web\node_modules\.staging\capture-stack-trace-59075fa10eb642e1b47ea9ed18a76ec3 is more than 256 characters long?