EPERM: operation not permitted, open 'C:\npm\cache\_cacache\

What I Wanted to Do

  • npm install (in order to build my website on Azure Virtual Machine)

What Happened Instead

  • npm fail to install
2019-01-17T08:26:18.0512981Z ==============================================================================
2019-01-17T08:26:18.0513125Z Task         : npm
2019-01-17T08:26:18.0513277Z Description  : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2019-01-17T08:26:18.0513560Z Version      : 1.144.0
2019-01-17T08:26:18.0513649Z Author       : Microsoft Corporation
2019-01-17T08:26:18.0513772Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2019-01-17T08:26:18.0514113Z ==============================================================================
2019-01-17T08:26:18.5352649Z SYSTEMVSSCONNECTION exists true
2019-01-17T08:26:19.1611685Z SYSTEMVSSCONNECTION exists true
2019-01-17T08:26:20.0786640Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" --version"
2019-01-17T08:26:20.7248460Z 6.2.0
2019-01-17T08:26:22.2157641Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" config list"
2019-01-17T08:26:22.8842669Z ; cli configs
2019-01-17T08:26:22.8843012Z metrics-registry = "https://registry.npmjs.org/"
2019-01-17T08:26:22.8843122Z scope = ""
2019-01-17T08:26:22.8843228Z user-agent = "npm/6.2.0 node/v10.9.0 win32 x64"
2019-01-17T08:26:22.8843322Z 
2019-01-17T08:26:22.8843414Z ; environment configs
2019-01-17T08:26:22.8843513Z cache = "C:\\npm\\cache"
2019-01-17T08:26:22.8843614Z prefix = "C:\\npm\\prefix"
2019-01-17T08:26:22.8843726Z userconfig = "G:\\vsts-work\\11\\npm\\16924.npmrc"
2019-01-17T08:26:22.8843823Z 
2019-01-17T08:26:22.8843914Z ; builtin config undefined
2019-01-17T08:26:22.8844165Z 
2019-01-17T08:26:22.8844290Z ; node bin location = C:\Program Files\nodejs\node.exe
2019-01-17T08:26:22.8844411Z ; cwd = G:\vsts-work\11\s\Appay.Web
2019-01-17T08:26:22.8844512Z ; HOME = C:\Windows\ServiceProfiles\NetworkService
2019-01-17T08:26:22.8844612Z ; "npm config ls -l" to show all defaults.
2019-01-17T08:26:22.8844688Z 
2019-01-17T08:26:22.8846428Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" install"
2019-01-17T08:26:34.7190110Z Unhandled rejection Error: EPERM: operation not permitted, open 'C:\npm\cache\_cacache\index-v5\73\c1\2f699add58dcbb2a2d0f4c9a8a135df99a8179216a1b5bd26649876a2b00'
2019-01-17T08:26:34.7190930Z Unhandled rejection Error: EPERM: operation not permitted, open 'C:\npm\cache\_cacache\index-v5\73\c1\2f699add58dcbb2a2d0f4c9a8a135df99a8179216a1b5bd26649876a2b00'
2019-01-17T08:26:34.7191270Z npm ERR! cb() never called!

Platform Info

$ npm --versions
{ npm: '6.2.0',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.32.0',
  node: '10.9.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.22.0',
  v8: '6.8.275.24-node.14',
  zlib: '1.2.11' }

$ node -p process.platform
win32

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.