![](/img/trans.png)
[英]Yarn is installed but does not work. Command is recognized but no yarn commands do anything. Windows Powershell
[英]Yarn Install - Not recognized as command in Windows 11 Powershell
纱线未被识别为 cmd 命令。
我尝试使用“npm install -g yarn”全局安装它,并将路径变量添加到“C:\Users[user]\AppData\Roaming\npm\yarn”。 还有其他建议吗?
您可以尝试以下几件事:
You may need to close and reopen the Powershell windows because newly added environment variables or updates to them are not automatically reflected to already open shell windows.
检查您的路径是否正确:它通常是C:\Users\endo\AppData\Roaming\npm
在我的 PC 上,而不是C:\Users\endo\AppData\Roaming\npm\yarn
正如你提到的。
尝试运行yarn.cmd
或yarn.ps1
。
尝试 CMD 而不是 Powershell,看看它是否可以这样工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.