Installing node with homebrew problems mac OS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Installing node with homebrew problems mac OS



after installing homebrew,



after running brew install node


brew install node



I test with:


node --version



I get:



command not found



If I rerun the install command:
I get:



MacBook-Pro:~ evanloiterman$ brew install node Warning: node 10.9.0 is
already installed, it's just not linked You can use brew link node
to link this version. MacBook-Pro:~ evanloiterman$ brew link node
Linking /usr/local/Cellar/node/10.9.0... Error: Could not symlink
include/node/common.gypi Target /usr/local/include/node/common.gypi
already exists. You may want to remove it: rm
'/usr/local/include/node/common.gypi'


brew link node



I try brew link node


brew link node



I get:



Error: Could not symlink include/node/common.gypi Target
/usr/local/include/node/common.gypi already exists. You may want to
remove it: rm '/usr/local/include/node/common.gypi'



To force the link and overwrite all conflicting files: brew link
--overwrite node



To list all files that would be deleted: brew link --overwrite
--dry-run node



What should I try next to ensure this is working?




1 Answer
1



You should install NVM (Node Version Manager). With this tool you can choose which node to use and install.



https://nodesource.com/blog/installing-node-js-tutorial-using-nvm-on-mac-os-x-and-ubuntu/






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS