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

EPERM: operation not permitted, copyfile #8393

Closed
afuno opened this issue Oct 14, 2020 · 1 comment · May be fixed by jamiecool/yarn#362, jamiecool/yarn#363, jamiecool/yarn#364, jamiecool/yarn#365 or jamiecool/yarn#366

Comments

@afuno
Copy link

afuno commented Oct 14, 2020

I'm trying to deploy two Rails applications to a server (5.1.7 and 6.0.3.4). But in the end I get the same error:

-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.22.10
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       info fsevents@2.1.3: The platform "linux" is incompatible with this module.
       info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
       info fsevents@1.2.13: The platform "linux" is incompatible with this module.
       info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
       [3/4] Linking dependencies...
       warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
       warning " > vue-loader@13.7.3" has unmet peer dependency "css-loader@*".
       warning " > webpack-dev-server@2.11.5" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
       warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
       error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/tmp/yarncache.VXiG0/v6/npm-abbrev-1.1.1-f8f2c887ad10bf67f634f005b6987fed3179aac8-integrity/node_modules/abbrev/README.md' -> '/tmp/build/node_modules/abbrev/README.md'".
       info If you think this is a bug, please open a bug report with the information provided in "/tmp/build/yarn-error.log".
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

More specifically:

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/tmp/yarncache.VXiG0/v6/npm-abbrev-1.1.1-f8f2c887ad10bf67f634f005b6987fed3179aac8-integrity/node_modules/abbrev/README.md' -> '/tmp/build/node_modules/abbrev/README.md'".

Does anyone know what the problem is and how to solve it?

@afuno
Copy link
Author

afuno commented Oct 14, 2020

These errors are random - that is, each deployment has a different package in the error text. But all errors about README.md, LICENSE.txt, .npmignore and other similar files.

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/tmp/yarncache.XZ2D8/v6/npm-@fortawesome-free-solid-svg-icons-5.15.1-e1432676ddd43108b41197fee9f86d910ad458ef-integrity/node_modules/@fortawesome/free-solid-svg-icons/LICENSE.txt' -> '/tmp/build/node_modules/@fortawesome/free-solid-svg-icons/LICENSE.txt'".
error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/tmp/yarncache.Pzea8/v6/npm-babel-plugin-check-es2015-constants-6.22.0-35157b101426fd2ffd3da3f75c7d1e91835bbf8a-integrity/node_modules/babel-plugin-check-es2015-constants/.npmignore' -> '/tmp/build/node_modules/babel-plugin-check-es2015-constants/.npmignore'".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment