Npm install fail due to ghost directory

6551 verbose stack Error: ENOTEMPTY: directory not empty, rename '/home/runner/Supabase-Tutorial-for-Beginners/node_modules/babel-loader' -> '/home/runner/Supabase-Tutorial-for-Beginners/node_modules/.babel-loader-xggtdq1m'
6552 verbose cwd /home/runner/Supabase-Tutorial-for-Beginners
6553 verbose Linux 5.19.0-1022-gcp
6554 verbose node v16.18.1
6555 verbose npm  v8.19.2
6556 error code ENOTEMPTY
6557 error syscall rename
6558 error path /home/runner/Supabase-Tutorial-for-Beginners/node_modules/babel-loader
6559 error dest /home/runner/Supabase-Tutorial-for-Beginners/node_modules/.babel-loader-xggtdq1m
6560 error errno -39
6561 error ENOTEMPTY: directory not empty, rename '/home/runner/Supabase-Tutorial-for-Beginners/node_modules/babel-loader' -> '/home/runner/Supabase-Tutorial-for-Beginners/node_modules/.babel-loader-xggtdq1m'
6562 verbose exit -39
6563 timing npm Completed in 32465ms
6564 verbose unfinished npm timer reify 1683641679694
6565 verbose unfinished npm timer reify:retireShallow 1683641711622
6566 verbose code -39
6567 error A complete log of this run can be found in:
6567 error     /home/runner/.npm/_logs/2023-05-09T14_14_39_575Z-debug-0.log```

run in Shell

rm -fr node_modules/.babel-loader-xggtdq1m

if you still get similar errors, run npm ci


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