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 fails on the mac with nodejs 21.1.0 version #1775

Open
nareshgundu23 opened this issue May 30, 2024 · 0 comments
Open

Grunt fails on the mac with nodejs 21.1.0 version #1775

nareshgundu23 opened this issue May 30, 2024 · 0 comments
Labels

Comments

@nareshgundu23
Copy link

nareshgundu23 commented May 30, 2024

we are trying to grunt after the npm install, but in gruntfile.js we have below piece of code. I don't see any permission issues with project directories or files. and same this works in the windows machine without any issues

copy: {
            main: {
                files: [
                {
                        expand: true,
                        mode: true,
                        cwd: './',
                        src: ['./**/*', '!./workspace/**/*', '!./nw/nw_mac/**/*'],
                        dest: 'build/'
                    },
                    {
                        src: './install_config.js',
                        dest: 'build/ugs/lib/'
                    }
                ]
            },
Running "copy:main" (copy) task
[D] Task source: /Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt-contrib-copy/tasks/copy.js
**Warning: EPERM: operation not permitted, futime Use --force to continue.
Error: EPERM: operation not permitted, futime**
at Object.futimesSync (node:fs:2160:11)
at syncTimestamp (/Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt-contrib-copy/tasks/copy.js:63:10)
at /Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt-contrib-copy/tasks/copy.js:100:11
at Array.forEach (<anonymous>)
at /Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt-contrib-copy/tasks/copy.js:77:20
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt-contrib-copy/tasks/copy.js:74:16)
at Object.<anonymous> (/Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt/lib/grunt/task.js:252:15)
at thisTask.fn (/Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt/lib/grunt/task.js:70:16)
at Object.<anonymous> (/Users/buildslave/test-workspace/workspace/starter_nodemodules_mac/konyWebStudio/node_modules/grunt/lib/util/task.js:294:30)

Aborted due to warnings.
+ cd build
+ npm prune --production --scripts-prepend-node-path=auto
npm WARN config production Use `--omit=dev` instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants