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
- Edit
composer.json
as follows:
{
"dependencies": {
"vuepress": "^1.0.0-rc.1"
},
"scripts": {
"docs:dev": "vuepress dev",
"docs:build": "vuepress build"
}
}
- 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.
Other relevant information
- My VuePress version is higher than
1.0.0-alpha.47
, the following is the output ofnpx vuepress info
in my VuePress project:
Note: Running yarn docs:dev
works properly.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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!