Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create a subdirectory as a file was created before by script itself #12

Open
Utopiah opened this issue Apr 2, 2023 · 0 comments

Comments

@Utopiah
Copy link

Utopiah commented Apr 2, 2023

Hi, here is the end of the log :

unpkg.com/[email protected]
Error: ENOTDIR: not a directory, mkdir '/home/fabien/Prototypes/har-offline/unpkg.com/[email protected]/dist'
    at Object.mkdirSync (node:fs:1400:3)
    at make (/usr/lib/node_modules/har-extractor/node_modules/make-dir/index.js:61:12)
    at module.exports.sync (/usr/lib/node_modules/har-extractor/node_modules/make-dir/index.js:84:9)
    at /usr/lib/node_modules/har-extractor/lib/har-extractor.js:48:21
    at Array.forEach (<anonymous>)
    at extract (/usr/lib/node_modules/har-extractor/lib/har-extractor.js:41:28)
    at Object.<anonymous> (/usr/lib/node_modules/har-extractor/bin/cmd.js:51:5)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32) {
  errno: -20,
  syscall: 'mkdir',
  code: 'ENOTDIR',
  path: '/home/fabien/Prototypes/har-offline/unpkg.com/[email protected]/dist'
}

Files and directories until that point were created properly. If I check

fabien@fabien-CORSAIR-ONE-i160:~/Prototypes/har-offline$ ls unpkg.com/[email protected] -l
-rw-rw-r-- 1 fabien fabien 107488 apr  2 09:50 unpkg.com/[email protected]

seems to be a file, not a directory. Maybe it's due to redirections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant