[英]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.