powershell - npm install sometimes fails in Visual Studio Online -
i had problems vs online , nuget-restore. report couldn't find packages, visual studio 2015 found , installed. specified in nuget's targets file use apiv3 , apiv2. since than, nuget packages found, i'm starting experience different, rather random, errors npm. i've pre-build script (configured in project file) installs necessary npm , bower packages, , afterwards runs gulp. works fine locally, , of times online. every ~4th time on average, exception similar this: eperm, open 'c:\npm\cache\fedb6d47-pm-cache-clone-1-0-2-package-tgz.lock' or this: eperm, open 'c:\npm\cache\ca5822dc-sh-isarguments-3-0-4-package-tgz.lock' i working on gulpfile in beginning, thought of changes caused it, now, i'm not touching project anymore, , compiled fine until got error again. in meanwhile, i've added tiny change commit , push it, , compiles fine again. idea can cause , how can @ least reduce risk of getting error? here pre-build powershell script:...