0

我遇到了一些纱线问题。因此通过自制软件(mac)卸载并重新安装它。现在运行任何纱线命令得到以下错误(即使在yarn -v

Invariant Violation: Expected a key
    at invariant (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:2314:15)
    at Parser.parse (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:64434:55)
    at parse (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:64581:21)
    at module.exports.exports.default (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:64143:96)
    at loadRcFile (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:56986:58)
    at /usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:56960:14
    at /usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:101468:14
    at Array.map (<anonymous>)
    at parseRcPaths (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:101466:78)
    at Object.findRc (/usr/local/Cellar/yarn/1.22.15/libexec/lib/cli.js:101480:10)

由于没有任何纱线命令有效,因此也无法清除纱线缓存。如何解决这个问题?

4

0 回答 0