我最近擦除了我的硬盘并将我的 MacOS 升级到了 Catalina。现在第一次在 zsh 上运行。我安装了 Homebrew,然后安装了 node v12.14.1,我可以在运行时确认node --version
。当我尝试使用 初始化 React-Native 应用程序时npx react-native init
,我收到以下错误:
Command failed: '/usr/local/Cellar/node@12/12.14.1_1/bin/node' '/usr/local/Cellar/node@12/12.14.1_1/lib/node_modules/npm/bin/npm-cli.js' config get cache --parseable
有什么建议吗?