Activeyesterday
- Node Js Setup
- Node Js Download For Mac Pro
- Node Js Download For Mac Windows 10
- Node Js Download For Mac Free
- Mac Install Node Js
- Node Js Download For Windows 7 32 Bit
Currently I am using Node.js v0.6.16 on Mac OS X 10.7.4. Now I want to upgrade it to the latest Node.js v0.8.1. But after downloading and installing the latest package file from nodejs.org, I found that system is still using v0.6.16 instead of v0.8.1 when I typed 'node -v' in a terminal. Is there any step that I have missed? Or, should I thoroughly uninstall the old version before installing the latest one?
BTW, I know that nvm can help to manage the nodejs package
Node.js and npm can be installed from a download link. Go to the Node installation page, and download the Node installer. I have a 64-bit Windows 10 OS, so I chose that one. Built out of WebKit and Node.js. Runs as a desktop app on Mac, Windows and Linux, and can be hacked into any WebKit browser (Chrome, Safari). Node Version Manager - Simple bash script to manage multiple active node.js versions - creationix/nvm. Mac OS 'troubleshooting' nvm node version not found in vim. To install the updates of Node and NPM on windows system just download the installer from the Node.js Installer page and run it again like you do when installing. The new updated version of Node and NPM will replace the older versions. Installing Node.js on a Mac From. Simply to navigate to nodejs.org in the browser and then click on this button right here in the center of the screen to download your package.
Is there any way to upgrade the Node.js without using it?
I have googled this problem, but it seems to me that there is no very clear answer to this question for the latest Node.js.
Tot Zam4,38344 gold badges3535 silver badges5555 bronze badges
afterglowleeafterglowlee3,92544 gold badges1515 silver badges2323 bronze badges
23 Answers
Here's how I successfully upgraded from
v0.8.18
to v0.10.20
without any other requirements like brew etc, (type these commands in the terminal):sudo npm cache clean -f
(force) clear you npm cachesudo npm install -g n
install n (this might take a while)sudo n stable
upgrade to the current stable version
Note that
sudo
might prompt your password.Additional note regarding step 3:
stable
can be exchanged for latest
, lts
(long term support) or any specific version number such as 0.10.20
.If the version number doesn't show up when typing
node -v
, you might have to reboot.These instructions are found here as well: davidwalsh.name/upgrade-nodejs
More info about the n package found here: npmjs.com/package/n
More info about Node.js' release schedule: github.com/nodejs/Release
Johan DettmarJohan DettmarMore info about the n package found here: npmjs.com/package/n
More info about Node.js' release schedule: github.com/nodejs/Release
18.6k33 gold badges2323 silver badges2222 bronze badges
If you initially installed Node.js with Homebrew, run:
Or as a one-liner:
Note: If you have
npm --version
< 2.7.1, you should replace update
(above) with install
.A convenient way to change versions is to use nvm:
To install the latest version of Node.js with nvm:
If you installed via a package, then download the latest version from nodejs.org.See Installing Node.js and updating npm.
wprlwprl19.4k1010 gold badges4545 silver badges6767 bronze badges
Because this seems to be at the top of Google when searching for how to upgrade nodejs on mac I will offer my tip for anyone coming along in the future despite its age.
Upgrading via NPM
You can use the method described by @Mathias above or choose the following simpler method via the terminal.
You can use the method described by @Mathias above or choose the following simpler method via the terminal.
After which you may opt to confirm the upgrade
Your nodejs should have upgraded to the latest version. If you wish to upgrade to a specific one say v0.8.19 then instead of
use
EDITAvoid using sudo unless you need to. Refer to comment by Steve in the comments
Kennedy NyagaKennedy Nyaga2,75411 gold badge1818 silver badges2020 bronze badges
Node Js Setup
![Node Js Download For Mac Node Js Download For Mac](/uploads/1/2/6/1/126135812/667014951.png)
Go to http://nodejs.org and download and run the installer.It works now - for me at least.
SpoekenSpoeken1,73722 gold badges2222 silver badges3636 bronze badges
You could install nvm and have multiple versions of Node.js installed.
and then run:
you can see what versions you have installed with :
and you can change between versions with:
The great thing about using NVM is that you can test different versions alongside one another. If different apps require different versions of Node.js, you can run them both.
fijiaaronfijiaaron2,86422 gold badges2929 silver badges2828 bronze badges
I use Node version manager (called n) for it.
then
OR
Shaikh ShahidShaikh Shahid
Simply go to node JS Website and install the latest version.
Do install latest version instead of the recommended stable version. It will give you freedom to use latest ES6 Features on node.
Can be Found here Node JS.
also to update npm, you will have to use this command.
sudo npm i -g npm@latest
All your projects will work fine.
Other option for mac ::
FurkanObrew update && brew install node && npm -g npm
3,61211 gold badge1313 silver badges2929 bronze badges
Tarandeep SinghTarandeep Singh
Nick WoodhamsNick Woodhams7,2881010 gold badges4242 silver badges4848 bronze badges
I am able to upgrade the node using following command
Rohit KaleRohit Kale
sadly,
n
doesn't worked for me. I use node version manager or nvm
and it works like a charm. heres the link on how to install nvm
: https://github.com/creationix/nvm#installationnvm i 8.11.2
upgrade to latest LTSnvm use 8.11.2
use itnode -v
check your latest version
JannomeisterJannomeister
Go to the website nodejs.org and download the latest pkg then install.it works for me
I used brew to upgrade my node. It has installed but it located in
/usr/local/Cellar/node/5.5.0
and there is a default node in /usr/local/bin/node
which bothers me. I don't want to make soft link because I don't really know how brew is organized. So I download the pkg
file, installed and I got this info:Node.js
was installed atnpm
was installed atMake sure that
/usr/local/bin
is in your $PATH.Now the upgrade is completed
iSkore4,91133 gold badges2222 silver badges4545 bronze badges
Lucas LiuLucas Liu
You can just go to nodejs.org and download the newest package. It will update appropriately for you. NPM will be updated as well.
BRogers![For For](/uploads/1/2/6/1/126135812/238707446.png)
2,79444 gold badges1717 silver badges2626 bronze badges
You can run but you can't hide... At the end you will be using NVM anyways.
Igor EscobarIgor Escobar
I think the simplest way to use the newest version of Node.js is to get the newest Node.js pkg file in the website https://nodejs.org/en/download/current/if you want to use different version of Node.js you can use nvm or n to manage it.
user4810973user4810973
lmiguelvargasf16.7k1616 gold badges100100 silver badges118118 bronze badges
sumanth reddysumanth reddy
NvmNvm is a script-based node version manager. You can install it easily with a curl and bash one-liner as described in the documentation. It's also available on Homebrew.
Assuming you have successfully installed nvm. The following will install the latest version of node.
The last option installs all global npm packages over to your new version. This way packages like mocha and node-inspector keep working.
NN is an npm-based node version manager. You can install it by installing first some version of node and then running
npm install -g n
.Assuming you have successfully installed n. The following will install the latest version of node.
HomebrewHomebrew is one of the two popular package managers for Mac. Assuming you have previously installed node with brew install node. You can get up-to-date with formulae and upgrade to the latest Node.js version with the following.
MacPortsMacPorts is the another package manager for Mac. The following will update the local ports tree to get access to updated versions. Then it will install the latest version of Node.js. This works even if you have previous version of the package installed.
Rubin bhandariRubin bhandari
These 2 methods I tried are not working:
- Use npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
- Manual install node from official website (https://nodejs.org/en/)
After trying,
node -v
still shows the old version of node.Below method works for me:
Step 1: Install nvm (for more details: https://github.com/creationix/nvm#installation)
Open terminal and type this command:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Close terminal and reopen it.
Type this command to check if nvm is installed:
command -v nvm
Step 2: To download, compile, and install the latest release of node, type this:
nvm install node
('node' is an alias for the latest version)To check if node gets the latest version (v10.11.0).
Installing the latest node also installs the latest npm.
Check if npm gets the latest version (6.4.1).
Saviah KaoSaviah Kao
for latest release:
nvm install node
specific version:
DekeDekenvm install 6.14.4
1,68311 gold badge1313 silver badges3131 bronze badges
Use nvm to upgrade node as per the project requirement..
Node Js Download For Mac Pro
install nvm through homebrew..brew updatebrew install nvmmkdir ~/.nvmnano ~/.bash_profile
In your .bash_profile file (you may be using an other file, according to your shell), add the following :
export NVM_DIR=~/.nvmsource $(brew --prefix nvm)/nvm.sh
source ~/.bash_profileecho $NVM_DIR
radhey shyamradhey shyam
I had the same problem. This is what worked for me because I downloaded and installed node.js globally from the node.js website.
What I did was Give NVM (Node Version Manager) a try. Please do the commands in the following order in your terminal
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
- command -v nvm
- nvm install node
- node -v (to confirm the update)
fypnlpfypnlp
You can directly use curl to upgrade node to the latest version. Run the following command:
Reference: https://nodejs.org/en/download/package-manager/#macos
user846316user8463162,70333 gold badges1919 silver badges3535 bronze badges
Easy nad Safe Steps
Step 1: Install NVM
Step 2: Create a directory for NVM
Step 3: Configure your environmental variables
Node Js Download For Mac Windows 10
PASTE BELOW CODE
Node Js Download For Mac Free
Step 4: Double check your work
Step 5: Install Node
Mac Install Node Js
Step6: Upgrade
nvm install v10.16.3
Troubleshooting
Narendranath ReddyNarendranath Reddy
I was able to update in ~20 seconds with just one line of code
Other commands weren't working for me, but this one worked. Hope it helps somebody.
pihyperpihyper
protected by Community♦Mar 24 '18 at 5:47
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?