node.js - brew 错误 : No available formula with the name "node@11"

标签 node.js npm homebrew

我在使用 node v12.6 时遇到一些错误,所以我正在尝试降级到 node@11。

做一个 brew install node@11给了我标题错误,我在谷歌中没有找到很多关于如何继续的结果。

完全错误:-

==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
wtfutil
==> Updated Formulae
glooctl           juju              k6                moarvm            moe               nqp               pulumi            rakudo            terraform         topgrade          xrootd

Error: No available formula with the name "node@11" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
brew search node给了我以下内容,所以看起来我已经安装了 11。
leafnode          libbitcoin-node   llnode            node ✔            node-build        node@10           node@8            node_exporter     nodebrew          nodeenv           nodenv

最佳答案

我不确定是什么导致了我的错误,但解决这个问题的方法是按照以下指南安装 v.11 和 NVM:-

https://www.npmjs.com/package/nvm

要安装 NVM,然后安装 Node 版本 11,只需执行以下操作:

$ brew install nvm
$ nvm install 11

关于node.js - brew 错误 : No available formula with the name "node@11",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57308101/

相关文章:

node.js - 下载包后 NPM 无法创建嵌套目录

opencv - brew 链接 jpeg 问题

macos - 已安装,只是未链接

javascript - 限制来自 Node 应用程序外部的 Ajax 调用

javascript - 在 NodeJs 简单模拟中捕获查询字符串中的参数

node.js - NodeJS 语法错误 : Unexpected token '.'

android - 无法在 npm 命令行中使用箭头键

mysql - 无法使用 Homebrew 在 MacOS Mojave 上安装 MySQL 5.7

node.js - 在用express发送响应后是否可以使用某种 'middleware'?

javascript - 在 Windows 上从 NPM 脚本运行 ESLint