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

vue-cli: failed to init project #971

Closed
Randysheng opened this issue Mar 11, 2018 · 1 comment
Closed

vue-cli: failed to init project #971

Randysheng opened this issue Mar 11, 2018 · 1 comment
Labels
2.x Issues for 2.x legacy versions

Comments

@Randysheng
Copy link

Version

2.9.3

Reproduction link

https://github.com/fdeitelhoff/brickobotik.codes

Steps to reproduce

vue init webpack projectname

What is expected?

success

What is actually happening?

/usr/local/lib/node_modules/vue-cli/node_modules/rimraf/rimraf.js:313
throw er
^

Error: EACCES: permission denied, unlink '/Users/Randy/.vue-templates/webpack/.gitignore'


  • mac:10.13.3
  • node:v.9.0.4
  • npm:5.7.1

when i used vue-cli to init my project, i got this error. I know i can use "sudo" to solve this problem. But, I never met this problem before. So, I want to know why this problem come this time? can you help me?

@LinusBorg LinusBorg added the 2.x Issues for 2.x legacy versions label Mar 11, 2018
@yyx990803
Copy link
Member

yyx990803 commented Mar 11, 2018

You should have access to your own home directory, so this means your home directory permission seems to be messed up somehow. You should chown -R your home directory. This is not something vue-cli can fix.

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

No branches or pull requests

3 participants