我的操作系统是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.我怎样才能解决这个问题呢?
发布于 2020-04-18 17:59:36
最近遇到了类似的问题。原因是yarn是在项目运行时启动的,部分文件被项目使用,导致权限错误。在停止正在运行的应用程序后,问题已经解决,并且yarn add已经成功完成。
发布于 2020-12-22 21:41:11
检查是否有任何杀毒软件(在我的例子中是Windows Defender或Avast )阻止执行Node.js或任何项目组件
https://stackoverflow.com/questions/60844951
复制相似问题