简体   繁体   English

在win10中,我执行yarn add protobufjs,但错误显示:错误发生意外错误:“EPERM:不允许操作,取消链接

[英]in win10,I excute yarn add protobufjs, but error shows: error An unexpected error occurred: "EPERM: operation not permitted, unlink

my operating system is win10,and I excute yarn add protobufjs , it shows:我的操作系统是win10,执行yarn add protobufjs ,显示:

\**>yarn add protobufjs
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "EPERM: operation not permitted, unlink 

'**:\\***\\Local\\Yarn\\Cache\\v4\\npm-@babel-plugin-proposal-unicode-property-regex-7.4.4-***\\node_modules\\@babel\\plugin-proposal-unicode-property-regex\\test\\fixtures\\without-unicode-flag\\unicode-10\\input.js'".
info If you think this is a bug, please open a bug report with the information provided in "***\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

how can I solve the problem?....我该如何解决问题?......

experienced similar problem recently.最近遇到了类似的问题。 The reason was that yarn was started when project was running, some files were used by the project and caused permission error.原因是项目运行时启动了yarn,项目使用了一些文件,导致权限错误。 After stopping the running app the problem has gone and yarn add has completed successfully.停止正在运行的应用程序后,问题消失了,yarn add 已成功完成。

检查您的任何防病毒软件(在我的情况下为 Windows Defender 或 Avast)是否阻止了 Node.js 或任何项目组件的执行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发生意外错误:“EPERM:不允许操作” - An unexpected error occurred: "EPERM: operation not permitted" 错误:EPERM:不允许操作 - Error: EPERM: operation not permitted 错误:EPERM:不允许操作,运行npm publish时取消链接 - Error: EPERM: operation not permitted, unlink when running npm publish npm 发布导致“错误:EPERM:不允许操作,取消链接...”,错误号 -4048 - npm publish causes 'Error: EPERM: operation not permitted, unlink ...', errno -4048 流星Windows 10错误:EPERM:不允许操作,取消链接…dev_bundle - Meteor Windows 10 Error: EPERM: operation not permitted, unlink …dev_bundle fs-extra:错误:EPERM:不允许操作,取消链接 - fs-extra: Error: EPERM: operation not permitted, unlink 错误:EPERM:不允许操作 errno:-1 - Error: EPERM: operation not permitted errno:-1 错误:EPERM:不允许进行操作,请取消链接“ C:\\ wamp64 \\ www \\ dev \\ node_modules \\ .staging” - Error: EPERM: operation not permitted, unlink 'C:\wamp64\www\dev\node_modules\.staging' npm 安装失败,错误:EPERM:不允许操作,取消链接 '\\node_modules' - npm install failed with Error: EPERM: operation not permitted, unlink '\node_modules' grunt serve:dist在win10上失败,并显示消息“警告:EPERM:不允许操作” - grunt serve:dist fails on win10 with the message “Warning: EPERM: operation not permitted”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM