首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >EPERM:不允许操作,断开试纱

EPERM:不允许操作,断开试纱
EN

Stack Overflow用户
提问于 2022-03-27 00:06:05
回答 1查看 1.7K关注 0票数 0

我刚接触过纱线,请原谅我的无知。

我试图运行这个命令(在上):

代码语言:javascript
运行
复制
yarn add @solana/pay @solana/web3.js bignumber.js 

我得到了一个错误:

代码语言:javascript
运行
复制
yarn add v1.22.15
warning package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
warning @solana/pay > @solana/web3.js > rpc-websockets > circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EPERM: operation not permitted, unlink 'C:\\Users\\n00b\\node_modules\\utf-8-validate\\prebuilds\\win32-ia32\\node.napi.node'".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\n00b\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

我在谷歌上做过研究

代码语言:javascript
运行
复制
https://stackoverflow.com/questions/46020018/error-eperm-operation-not-permitted-unlink-d-sources-node-modules-fseven

(非常旧的版本不相关)

代码语言:javascript
运行
复制
https://github.com/phoenixframework/phoenix/issues/2464

似乎不太相关

代码语言:javascript
运行
复制
https://www.webfoobar.com/node/39

又一次帮不上忙

我还尝试将--no-optional添加到命令的末尾,同样的问题也发生了

知道问题出在哪里了吗?我怎么解决的?

非常感谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-27 01:23:25

我在Windows终端预览应用程序中使用Power Shell。

相反,我尝试直接使用Power应用程序(我认为这是一个后来的版本,出于某种原因)。

效果很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71632764

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档