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

deno 1.6 compile getting error: Is a directory (os error 21) #8673

Open
elgs opened this issue Dec 8, 2020 · 3 comments
Open

deno 1.6 compile getting error: Is a directory (os error 21) #8673

elgs opened this issue Dec 8, 2020 · 3 comments

Comments

@elgs
Copy link

@elgs elgs commented Dec 8, 2020

/tmp$ deno --version
deno 1.6.0 (release, x86_64-apple-darwin)
v8 8.8.278.2
typescript 4.1.2
/tmp$ 
/tmp$ cat a.js
console.log('hello deno');
/tmp$ 
/tmp$ deno compile --unstable a.js
Bundle file:///private/tmp/a.js
Compile file:///private/tmp/a.js
error: Is a directory (os error 21)
/tmp$ 
@lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Dec 8, 2020

Do you have a folder at /private/tmp/a?

We should throw an error if the inferred output path already exists.

@elgs
Copy link
Author

@elgs elgs commented Dec 8, 2020

/$ ls -l /tmp
lrwxr-xr-x@ 1 root  wheel  11 Jan  1  2020 /tmp -> private/tmp

Yes, looks like /tmp and /private/tmp are the same on my computer. I moved a.js to ~, and it worked.

@elgs
Copy link
Author

@elgs elgs commented Dec 9, 2020

@lucacasonato I just read your question again. I indeed have a folder at /private/tmp/a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.