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

Error: EACCES: permission denied, open '/var/www/domain.com/.git/hooks/applypatch-msg' #2972

Closed
jiapei100 opened this issue Nov 17, 2018 · 3 comments

Comments

@jiapei100
Copy link

Vue CLI v3.1.3
✨  Creating project in /var/www/domain.com.
πŸ—ƒ  Initializing git repository...
βš™  Installing CLI plugins. This might take a while...


> yorkie@2.0.0 install /var/www/domain.com/node_modules/yorkie
> node bin/install.js

setting up Git hooks
{ Error: EACCES: permission denied, open '/var/www/domain.com/.git/hooks/applypatch-msg'
    at Object.openSync (fs.js:436:3)
    at Object.writeFileSync (fs.js:1187:35)
    at write (/var/www/domain.com/node_modules/yorkie/src/install.js:18:6)
    at createHook (/var/www/domain.com/node_modules/yorkie/src/install.js:45:5)
    at /var/www/domain.com/node_modules/yorkie/src/install.js:86:21
    at Array.map (<anonymous>)
    at installFrom (/var/www/domain.com/node_modules/yorkie/src/install.js:83:10)
    at Object.<anonymous> (/var/www/domain.com/node_modules/yorkie/bin/install.js:24:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/var/www/domain.com/.git/hooks/applypatch-msg' }
added 1113 packages from 737 contributors and audited 14787 packages in 21.735s
found 0 vulnerabilities
@vue-bot
Copy link

vue-bot commented Nov 17, 2018

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

@vue-bot vue-bot closed this as completed Nov 17, 2018
@jkurp
Copy link

jkurp commented Jan 22, 2019

I have the same issue when creating a new Vuejs project on my local machine:

~/projects/vue$ sudo vue create project1
...

yorkie@2.0.0 install /home/kevin/projects/vue/project1/node_modules/yorkie
node bin/install.js
setting up Git hooks
{ Error: EACCES: permission denied, open '/home/kevin/projects/vue/project1/.git/hooks/applypatch-msg'
...

my environment:
linux Ubuntu 16.04
npm --version
6.5.0
node --version
v11.7.0
vue --version
3.3.0

any help greatly appreciated

@Liumkattan
Copy link

Check out Issue #1809

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

4 participants