2

I'm using the following:

  • Ionic: 4.12.0
  • Node: 10.5.3
  • NPM: 6.4.1
  • Platform: Win10

I'm cloning a project from a repo on github. Just doing the usual npm i to fetch the node_modules package, I expect no issues coming from this. But I'm getting CRAZY quantities of ENOENT: No such file or directory warnings, resulting in 0 packages installed.

It goes something like this:

13743 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\database\package.json'
13744 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@ionic-native\core-4d421828\decorators\instance-property.metadata.json'
13745 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@angular\fire-594cd4d9\bundles\auth-guard.umd.js'
13746 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\firebase-node\package.json'
13747 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@ionic-native\core-4d421828\decorators\interfaces.metadata.json'
13748 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@ionic-native\google-maps-0866cf3a\ngx\index.d.ts'
13749 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\firestore\package.json'
13750 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\concat.js'
13751 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\functions\package.json'
13752 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\copy-within.js'
13753 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\entries.js'
13754 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\every.js'
13755 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\codelyzer-c13de8de\angular\styles\cssAst.js'
13756 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\storage\package.json'
13757 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\fill.js'
13758 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@ionic-native\core-4d421828\decorators\common.js.map'
13759 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\filter.js'
13760 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\rxjs-compat-07e6aa41\_esm5\observable\dom\ajax.js'
13761 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\codelyzer-c13de8de\angular\styles\cssLexer.js'
13762 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\angularfire2-f8aad165\auth\index.d.ts'
13763 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\core-js-3c812954\es\array\virtual\find-index.js'
13764 warn tar ENOENT: no such file or directory, open 'C:\Users\geron\OneDrive\Escritorio\AppElias\node_modules\.staging\@ionic-native\core-4d421828\decorators\cordova-function-override.js.map'
...

It's longer than that. I can post the complete log if needed, I've already tried:

  • Reinstalling npm/node/ionic
  • Using updated versions of npm/node/ionic
  • Using administrator privileges.
  • Turning off/uninstalling antivirus software.
  • Turning off firewalls.
  • Checking if my .json packages are wrong.
  • Checking if my .git is wrong.
  • Deleting package-lock.json and using npm i.

I must say this issue is specific to my computer and doesn't happen on coworkers computers. I can't nail the issue, and being incapable of using npm i is taxing heavily on my time constraints.

Does anyone know what it might be?

EDIT 1 package.json here: https://pastebin.com/7JpUZ4U1

EDIT 2 Apparently, it does download some npm files and stores them on node_modules/.staging, i've tried "npm audit" "npm fix" And everything here:

Why do Node modules go into .staging folder?

No solution yet.

P. Aneyba
  • 43
  • 8

0 Answers0