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

EACCES: permission denied #417

Open
horsley opened this issue May 29, 2023 · 1 comment
Open

EACCES: permission denied #417

horsley opened this issue May 29, 2023 · 1 comment

Comments

@horsley
Copy link

horsley commented May 29, 2023

? What type of extension do you want to create? New Extension (JavaScript)
? What's the name of your extension? sg-dev-helper
? What's the identifier of your extension? sg-dev-helper
? What's the description of your extension? 
? Enable JavaScript type checking in 'jsconfig.json'? No
? Initialize a git repository? Yes
? Which package manager to use? npm
✖ An error occured while running code:app#writing
Error code 

EACCES: permission denied, mkdir '/data/sg-ext/sg-dev-helper'
┌───────────────────────────────────────────────────┐
│              yo update check failed               │
│        Try running with sudo or get access        │
│       to the local update config store via        │
│ sudo chown -R $USER:$(id -gn $USER) /root/.config │
└───────────────────────────────────────────────────┘

sudo or chown didn't help, yo code using root account

@horsley
Copy link
Author

horsley commented May 29, 2023

After several investigation, I found that the issue can be reproduced when current directory path has an dash

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