我正在尝试为新项目设置节点v 8的要求(因为我想使用react-redux-firebase生成器,它需要v8)。
我在遵循SO和Homebrew上的说明时遇到了麻烦-它们似乎已过时。
我当前运行节点-v并获得v 10.13.0。
酿造取消链接节点返回
Error: No such keg: /usr/local/Cellar/node
棕色搜索节点返回:
棕色搜索节点
==> Formulae
leafnode node node@6 nodebrew
libbitcoin-node node-build node@8 ✔ nodeenv
llnode node@10 ✔ node_exporter nodenv
brew链接--overwrite --force node @ 8
Linking /usr/local/Cellar/node@8/8.12.0...
Error: Could not symlink lib/node_modules/npm/.mailmap
/usr/local/lib/node_modules/npm is not writable.
我不能在此命令上使用sudo,因为Homebrew不再支持它。
有人知道如何让节点v 8运行吗?
我尝试的所有结果均返回表示当前版本为10的结果
啤酒信息节点
node: stable 11.1.0 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/node.rb
==> Dependencies
Build: pkg-config ✘, python@2 ✘
Recommended: icu4c ✔
Optional: openssl@1.1 ✘
==> Options
--with-openssl@1.1
Build against Homebrew's OpenSSL instead of the bundled OpenSSL
--without-icu4c
Build with small-icu (English only) instead of system-icu (all locales)
--without-npm
npm will not be installed
--HEAD
Install HEAD version
==> Analytics
install: 343,912 (30 days), 946,087 (90 days), 3,815,131 (365 days)
install_on_request: 254,231 (30 days), 699,371 (90 days), 2,669,901 (365 days)
build_error: 0 (30 days)