handle `Permission denied` for `mkdir`

I found if we have not an enough permission to run `mkdir`, the `n` process wouldn't quit, and continue to create some directories or files like `node`, `lib`, `README.md`.

That's not a good experience.