question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: EACCES: permission denied, rmdir /var

See original GitHub issue
  • 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

  • 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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
DvdGiessencommented, Jun 17, 2019

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.

1reaction
faasiecommented, Aug 13, 2019

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
(Note* I see the rmdir 'build' in the error however, the command from the initial error told me to run the path including...
Read more >
Meteor Error: EACCES: permission denied, rmdir 'build'
It was an permission error I do a sudo chown -R $USERNAME /home/noob and now all work fine.
Read more >
How to fix Error: EACCES: permission denied, rmdir 'build'
The access/permission error is a result of using sudo while installing packages using pm. Make sure you never use sudo for it. So...
Read more >
gyp ERR! stack Error: EACCES: permission denied
Once you start deploying your Laravel application you may see this error in your terminal while installing npm. npm Error: gyp ERR! configure ......
Read more >
Resolving EACCES permissions errors when installing ...
If you see an EACCES error when you try to install a package globally, you can either: Reinstall npm with a node version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found