Skip to content
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

Grunt-Copy-JS annoying Warning: EPERM: operation not permitted, futime Use --force to continue. #308

Open
typoworx-de opened this issue Oct 21, 2020 · 2 comments

Comments

@typoworx-de
Copy link

I'm constantly getting this Error:

Warning: EPERM: operation not permitted, futime Use --force to continue.

I'm working on Ubuntu 16 Linux. Just for notice I'm working with mount-option "noatime". I tried to figure out what's wrong and noticed grund-copy uses futimeSync somewhere which seems to depend on atime and mtime? Is this optionally or can grund-copy handle if Linux doesn't have atime enabled?

I don't know why but sometimes fiddling around with deleting node_modules works, sometimes chown/chmod works, sometimes fiddling hours around on my Gruntfile does the trick. Still don't know where the real culprit is since the Gruntfile worked before without changes and in the next project it's driving me crazy again.

@typoworx-de
Copy link
Author

Okay... just got it working .. still not getting the point what it is while fiddling around. Just 5 min later it stuck again driving me crazy :-(

@redcuillin
Copy link

redcuillin commented May 30, 2023

Kind of late in the day, but this appears to be related to syntax rather than an actual permissions issue.
In my gruntfile I had to change the syntax from:

    copy: {
            files: {
                cwd: 'node_modules/filestocopy',
                src: '**/*',
                dest: './path/to/copiedfiles',
                expand: true
            }
     },

to:

    copy: {
            main: {
                files: [
                    {
                        cwd: 'node_modules/filestocopy',
                        src: ['**/.*'],
                        dest: './path/to/copiedfiles',
                        expand: true
                    },
                ],
            },
    },

The important part of the change appears to be the change to the 'src' line, in particular the addition of the '.' in '**/.*'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants