Homebrew - setting a specific version of node on osx










1















I am trying to set a node v 8 requirement for my new project (because I want to use react-redux-firebase generator, which requires v8).



I am having trouble following instructions on SO and Homebrew -they seem be out of date.



I currently run node -v and get v 10.13.0.



brew unlink node returns



Error: No such keg: /usr/local/Cellar/node


brew search node returns:



brew search node



==> Formulae
leafnode node node@6 nodebrew
libbitcoin-node node-build node@8 ✔ nodeenv
llnode node@10 ✔ node_exporter nodenv


brew link --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.


I can't use sudo on this command because Homebrew no longer supports it.



Does anyone know how to get node v 8 to run?



Everything I try returns results that say the current version is 10



brew info node



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)









share|improve this question
























  • I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

    – shkaper
    Nov 15 '18 at 1:38











  • nvm introduces other errors. No joy there

    – Mel
    Nov 15 '18 at 2:05















1















I am trying to set a node v 8 requirement for my new project (because I want to use react-redux-firebase generator, which requires v8).



I am having trouble following instructions on SO and Homebrew -they seem be out of date.



I currently run node -v and get v 10.13.0.



brew unlink node returns



Error: No such keg: /usr/local/Cellar/node


brew search node returns:



brew search node



==> Formulae
leafnode node node@6 nodebrew
libbitcoin-node node-build node@8 ✔ nodeenv
llnode node@10 ✔ node_exporter nodenv


brew link --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.


I can't use sudo on this command because Homebrew no longer supports it.



Does anyone know how to get node v 8 to run?



Everything I try returns results that say the current version is 10



brew info node



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)









share|improve this question
























  • I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

    – shkaper
    Nov 15 '18 at 1:38











  • nvm introduces other errors. No joy there

    – Mel
    Nov 15 '18 at 2:05













1












1








1








I am trying to set a node v 8 requirement for my new project (because I want to use react-redux-firebase generator, which requires v8).



I am having trouble following instructions on SO and Homebrew -they seem be out of date.



I currently run node -v and get v 10.13.0.



brew unlink node returns



Error: No such keg: /usr/local/Cellar/node


brew search node returns:



brew search node



==> Formulae
leafnode node node@6 nodebrew
libbitcoin-node node-build node@8 ✔ nodeenv
llnode node@10 ✔ node_exporter nodenv


brew link --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.


I can't use sudo on this command because Homebrew no longer supports it.



Does anyone know how to get node v 8 to run?



Everything I try returns results that say the current version is 10



brew info node



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)









share|improve this question
















I am trying to set a node v 8 requirement for my new project (because I want to use react-redux-firebase generator, which requires v8).



I am having trouble following instructions on SO and Homebrew -they seem be out of date.



I currently run node -v and get v 10.13.0.



brew unlink node returns



Error: No such keg: /usr/local/Cellar/node


brew search node returns:



brew search node



==> Formulae
leafnode node node@6 nodebrew
libbitcoin-node node-build node@8 ✔ nodeenv
llnode node@10 ✔ node_exporter nodenv


brew link --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.


I can't use sudo on this command because Homebrew no longer supports it.



Does anyone know how to get node v 8 to run?



Everything I try returns results that say the current version is 10



brew info node



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)






node.js homebrew






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 2:06







Mel

















asked Nov 15 '18 at 1:03









MelMel

79382884




79382884












  • I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

    – shkaper
    Nov 15 '18 at 1:38











  • nvm introduces other errors. No joy there

    – Mel
    Nov 15 '18 at 2:05

















  • I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

    – shkaper
    Nov 15 '18 at 1:38











  • nvm introduces other errors. No joy there

    – Mel
    Nov 15 '18 at 2:05
















I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

– shkaper
Nov 15 '18 at 1:38





I'd recommend you to check out the nvm (github.com/creationix/nvm). It's probably the easiest way to install particular versions of node and switch between them.

– shkaper
Nov 15 '18 at 1:38













nvm introduces other errors. No joy there

– Mel
Nov 15 '18 at 2:05





nvm introduces other errors. No joy there

– Mel
Nov 15 '18 at 2:05












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311006%2fhomebrew-setting-a-specific-version-of-node-on-osx%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311006%2fhomebrew-setting-a-specific-version-of-node-on-osx%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3