ENOENT No such file or directory errors

I started getting the following errors when doing npm i on a project:

npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/package.json'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/package.json'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/bser-ecf05a53/package.json'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/.npmignore'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/.npmignore'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/bser-ecf05a53/README.md'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/README.md'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/README.md'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/bser-ecf05a53/index.js'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/Int64.js'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/index.js'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-alias-38d05a42/.travis.yml'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/node-int64-2fc2bde9/test.js'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/typescript-bb2f70a0/lib/lib.es6.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/typescript-bb2f70a0/lib/lib.esnext.array.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/typescript-bb2f70a0/lib/lib.esnext.asynciterable.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/.../node_modules/.staging/typescript-bb2f70a0/lib/lib.esnext.bigint.d.ts'

Any ideas?

Looks like upgrading to NPM 6.9.0 fixed it …

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