Vuepress: Error: EACCES: permission denied, rmdir /var

Created on 15 Jun 2019  路  7Comments  路  Source: vuejs/vuepress




  • [x] I confirm that this is an issue rather than a question.




Bug report

Steps to reproduce

  1. Edit composer.json as follows:
{
  "dependencies": {
     "vuepress": "^1.0.0-rc.1"
  },
  "scripts": {
    "docs:dev": "vuepress dev",
    "docs:build": "vuepress build"
  }
}
  1. Run yarn docs:build

What is expected?

Build to run and create appropriate files in .vuepress/dist

What is actually happening?

Build begins but throws permission denied error after the Apply plugin section.

image

Other relevant information


  • [x] My VuePress version is higher than 1.0.0-alpha.47, the following is the output of npx vuepress info in my VuePress project:
    2019-06-14_22-33

Note: Running yarn docs:dev works properly.

need feedback

Most helpful comment

try sudo yarn docs:build?

No. Do not run it with sudo!

It tried to delete your entire /var directory, which would break your entire system. You don't want to force it to do that.

All 7 comments

try sudo yarn docs:build?

try sudo yarn docs:build?

No. Do not run it with sudo!

It tried to delete your entire /var directory, which would break your entire system. You don't want to force it to do that.

thanks @DvdGiessen , my fault ...

How to reproduce it?

@faasie Is this issue still relevant?

Sorry, I meant to update this.

It has been resolved. I ended up putting my docs in the /docs folder and it worked. shrug

Thanks for the work on vuepress. I do love working with it!

Sorry, I meant to update this.

It has been resolved. I ended up putting my docs in the /docs folder and it worked. _shrug_

Thanks for the work on vuepress. I do love working with it!

how do you deal with it? @faasie

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ynnelson picture ynnelson  路  3Comments

AleksejDix picture AleksejDix  路  3Comments

alinnert picture alinnert  路  3Comments

ederchrono picture ederchrono  路  3Comments

tinchox5 picture tinchox5  路  3Comments