-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' #1547
Comments
Try using the |
You probably mixed permissions at one point. rmdir build manually (I'm betting it's owned by root) and run rebuild again. node-gyp will recreate it with the right permissions. |
The second line worked for me, thanks a lot |
Hi, From above comment following command worked for me: Best regards, |
Try with this one! sudo npm install -g cordova-res --unsafe-perm flag |
This no longer works as of NPM 7 (packaged wit Node 15) as the --unsafe-perm flag has been removed: npm/cli#2196 |
Perhaps find or open an issue at https://github.com/ionic-team/cordova-res |
I had to run the permission change recursively on the directory of the package I was trying to rebuild |
Upgrading to NPM 7+ solved the problem for me |
do you mean
|
Received Slack message regarding error with
node_modules/fibers/bin/linux-x64-59/fibers'
and recommendation to run a script. I ran the fibers/build script but, then received notification must install node-gyp. (Note* I see the rmdir 'build' in the error however, the command from the initial error told me to run the path including /build). To confirm the path we want for npm and node-gyp is: /opt/node/bin/ -- whenls -al
I see npm and node-gyp are there.Then the following error received after installing node-gyp:
Then received following after running command
node-gyp rebuild
:The text was updated successfully, but these errors were encountered: