-
Notifications
You must be signed in to change notification settings - Fork 859
npm WARN cannot run in wd / bower EACCES: permission denied, mkdir #596
Comments
I hear you on the trial and error with npm. You should not run Try deleting the |
Just ran into this actually. Depends on how you have your machine configured when you install everything. This should fix your problem though, essentially the issue has to do with you not having ownership of the .npm directory.
This should allow you take ownership and stop using "sudo" for your installation. Might be worth updating the README though. This is an easy starting block for people to get into .npm and consequently pre-processing. |
You can run @bej-soan you should read this first to be safe: |
@colin-marshall thank you for the link, I will try this. I ran into erros without |
@Aetles thanks for sharing the links, I haven't really used Homebrew but now I want to check it out. |
Hi,
I again came along the following
cannot run in wd
bug and I guess I found a workaround and thought I might share it here. Maybe it will help others or we can take a look at the source (read about it here already, but solution is not clear to me)Bower version: 1.7.0
Node version: 4.2.2
The bug appears during
npm install
When I use just
bower install
I getSo the theres a permission problem at assets/components, so I used
sudo chown -R username /Users/username/MAMP/xxx/wp-content/themes/FoundationPress/assets/
on the asset folder.
After this
bower install
seemed to work,gulp build
did not work.So I used
npm build
and this now works.Sorry If this is a bit confusing, but npm and stuff is try and error for me.
The text was updated successfully, but these errors were encountered: