tag:help.appveyor.com,2012-11-13:/discussions/problems/22717-building-failing-eperm-operation-not-permittedAppVeyor: Discussion 2019-06-08T21:01:03Ztag:help.appveyor.com,2012-11-13:Comment/471408162019-04-03T15:02:33Z2019-04-03T15:02:33Zbuilding failing EPERM: operation not permitted<div><p>You mentioned that you recreated the <code>package-lock.json</code> file and it worked previously. But did you do that on the <em>non-master</em> branch that seems to be failing now?<br>
That would be my first guess for what's causing the hash integrity error.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471408162019-04-03T15:34:24Z2019-04-03T15:34:24Zbuilding failing EPERM: operation not permitted<div><p>its failing on both branches master and uat was working on both branches. However when i inherited this project it was not working so i deleted the lock file then generated new lock file and commited and pushed and got the build working. Since then I have not changed anything front end just some mark up changes then pushed and now i get this error.</p></div>ismail.mayattag:help.appveyor.com,2012-11-13:Comment/471408162019-04-03T17:33:29Z2019-04-03T17:33:29Zbuilding failing EPERM: operation not permitted<div><p>What happens if you try a branch where you don't include the lock file at all (or delete it before running npm install)?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471408162019-04-04T08:17:40Z2019-04-04T08:17:40Zbuilding failing EPERM: operation not permitted<div><p>The build gets alot further but then fails with following error message:</p>
<p>Running "requirejs:dist" (requirejs) task<br>
Running "modernizr:dist" (modernizr) task<br>
Warning: ENOENT: no such file or directory, open 'C:\projects\mysite\node_modules\modernizr\node_modules\lodash\lodash.js' Use --force to continue.</p></div>ismail.mayattag:help.appveyor.com,2012-11-13:Comment/471408162019-04-04T15:09:20Z2019-04-04T15:09:20Zbuilding failing EPERM: operation not permitted<div><p>And have you run this build locally?<br>
Can you provide a link to the specific project/build and share your full configuration.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471408162019-04-08T15:25:11Z2019-04-08T15:25:11Zbuilding failing EPERM: operation not permitted<div><p>Owen,<br>
Runs fine locally. Locally i have</p>
<p>Node - v10.15.1<br>
npm - 6.4.1</p>
<p>The build config looks like</p>
<h2><a name="-uat-configuration-" class="anchor" href="#-uat-configuration-"></a>#uat configuration</h2>
<p>branches: only: - uat</p>
<p>#version format version: 1.0.{build}</p>
<p>configuration: UAT</p>
<p>cache: - packages -> **\packages.config</p>
<p>before_build: - nuget restore - npm install -g grunt-cli - npm install --save lodash - cd Web.UI - set PATH=C:\Ruby22\bin;%PATH% - gem install compass - appveyor-retry npm install - grunt prod</p>
<p>build: publish_wap: true project: UK.sln</p>
<p>deploy: provider: Environment name: UAT Main Site app_offline: true skip_dirs: \App_Data</p>
<p>The link to build is <a href="https://ci.appveyor.com/project/PCUK/pcuk-main-site/builds/23592210">https://ci.appveyor.com/project/PCUK/pcuk-main-site/builds/23592210</a></p></div>ismail.mayattag:help.appveyor.com,2012-11-13:Comment/471408162019-04-08T20:46:26Z2019-04-08T20:46:26Zbuilding failing EPERM: operation not permitted<div><p>From your build log the command <code>npm install --save lodash</code> is causing an error since there is no <code>package.json</code> in your base directory.</p>
<p>Perhaps you meant to put that command <em>after</em> the <code>cd Web.UI</code>?</p></div>Owen McDonnell