arifsetiawan / flatten

flatten packages in node_modules
MIT License
45 stars 4 forks source link

Error: ENOENT, no such file or directory when moving directories #15

Open nantas opened 9 years ago

nantas commented 9 years ago
moving directory c:\Users\Administrator\projects\fireball-x\fireball\dist\resources\app\node_modules\chalk\node_modules\has-ansi\node_modules\get-stdin to c:\Users\Administrator\projects\fireball-x\fireball\dist\resources\app\node_modules\get-stdin
{ [Error: ENOENT, no such file or directory 'c:\Users\Administrator\projects\fireball-x\fireball\dist\resources\app\node_modules\chalk\node_modules\has-ansi\node_modules\get-stdin']
  errno: -4058,
  code: 'ENOENT',
  path: 'c:\\Users\\Administrator\\projects\\fireball-x\\fireball\\dist\\resources\\app\\node_modules\\chalk\\node_modules\\has-ansi\\node_modules\\get-stdin',
  syscall: 'stat' }

When this error occurs, I checked and the source folder c:\Users\Administrator\projects\fireball-x\fireball\dist\resources\app\node_modules\chalk\node_modules\has-ansi\node_modules\get-stdin does exists.

My project's node_modules iteration info:

node_modules iteration complete
there are 512 unique packages
          962 duplicate packages
there are 41 packages in node_modules level 1
          219 packages in node_modules level 2
          420 packages in node_modules level 3
          374 packages in node_modules level 4
          240 packages in node_modules level 5
          124 packages in node_modules level 6
          38 packages in node_modules level 7
          17 packages in node_modules level 8
          1 packages in node_modules level 9
rohit-guitar commented 7 years ago

@nantas I am facing the same error. Did you find the way around?

MrWillow commented 6 years ago

I have the same problem. Here it is trying to move or delete a file I can indeed not find. Any progress on this issue?