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

Cannot install (operation not permitted) #12

Closed
folmert opened this issue Jul 17, 2018 · 4 comments
Closed

Cannot install (operation not permitted) #12

folmert opened this issue Jul 17, 2018 · 4 comments

Comments

@folmert
Copy link

folmert commented Jul 17, 2018

yarn add jest-canvas-mock:

error An unexpected error occurred: "EPERM: operation not permitted,

@hustcc
Copy link
Owner

hustcc commented Jul 18, 2018

Give me more information.

@folmert
Copy link
Author

folmert commented Jul 18, 2018

What information specifically?

Newest yarn & node, Windows 10, running on Cmder with admin rights.

Full output:

C:\Users\user\projects\FE\mine>yarn add jest-canvas-mock
yarn add v1.3.2
(node:39128) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning ....\package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
error An unexpected error occurred: "EPERM: operation not permitted, unlink 'C:\Users\user\projects\FE\mine\node_modules\node-sass\vendor\win32-x64-64\binding.node'".
info If you think this is a bug, please open a bug report with the information provided in "C:\Users\user\projects\FE\mine\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Looks like a common yarn issue, though: yarnpkg/yarn#992

@folmert
Copy link
Author

folmert commented Jul 18, 2018

However, it does work when I add it to package.json, remove all node_modules and run yarn install again.

@hustcc
Copy link
Owner

hustcc commented Jul 24, 2018

Seem issue of yarn.

@hustcc hustcc closed this as completed Aug 18, 2018
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