Macos 纱线全局错误“包装”/usr";引用不存在的文件`
运行大量Macos 纱线全局错误“包装”/usr";引用不存在的文件`,macos,command-line-interface,yarnpkg,Macos,Command Line Interface,Yarnpkg,运行大量纱线全局命令(例如纱线全局列表,纱线全局添加)会导致以下错误: $ yarn global list error Package "/usr" refers to a non-existing file '"/usr@file:../../../../../usr@/usr/local"'. info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this
纱线全局
命令(例如纱线全局列表
,纱线全局添加
)会导致以下错误:
$ yarn global list
error Package "/usr" refers to a non-existing file '"/usr@file:../../../../../usr@/usr/local"'.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
可能有用也可能无用的其他信息
- 通过自制安装的纱线
- 纱线版本:1.22.10
- 路径:
- macOS 11.2.3
=哪根纱线
/usr/local/bin/warn
fish
而不是您在原始问题陈述中没有明确说明的bash
?如果您从由“/bin/sh”启动的shell执行相同的“纱线”命令会发生什么?@KurtisRader感谢您的调用,更新为标记“macOS”并删除了“fish”。验证无论从哪个shell执行纱线全局
命令,结果都是相同的。
/Users/adam.sisk/.asdf/shims
/usr/local/opt/asdf/bin
/Users/adam.sisk/.yarn/bin
/Users/adam.sisk/dev/repos/learn/flutter/bin
/Users/adam.sisk/Library/Python/3.7/bin
/usr/local/sbin
./node_modules/.bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Library/Apple/usr/bin
/Applications/Wireshark.app/Contents/MacOS