小背景故事 我尝试使用pnpm,但是在安装时出现问题,起初我认为它是损坏的文件或什么,所以我尝试卸载并再次安装它,但同样的事情发生了3次..所以这里是他们从文档本身中说了什么。
直接来自文档,
通过 npm:成功
npm install -g pnpm
但是,在下一步中,出了点问题。我不知道为什么,因为我在使用 NPM 时还是新手。
首次安装 pnpm 后,您可以使用 pnpm 对其进行升级:
pnpm install -g pnpm
然后这个日志出来了
Nothing to stop. No server is running for the store at C:\Users\<UserName>\.pnpm-store\2
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Packages: +1
+
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 0, downloaded 0
Resolving: total 1, reused 1, downloaded 0, done
ERROR EPERM: operation not permitted, open 'C:\Users\<UserName>\AppData\Roaming\npm\pnpm'
我想 了解什么是问题以及解决方案是什么..
- 有人可以解释这里发生了什么吗?
- 使用 PNPM 的解决方案有哪些?
- 起初,当我启动第一个命令时它工作正常,我可以
pnpm --v
正常调用,但是在第二个命令上它的行为就像我上面所说的那样。我应该放弃第二个命令并按原样使用 PNPM 吗?