Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 717 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrading Node.js to latest version

#11
Using brew and nvm on Mac OSX:

If you're not using nvm, first uninstall nodejs. Then install Homebrew if not already installed. Then install nvm and node:

<!-- language: lang-bsh -->

brew install nvm
nvm ls-remote # find the version you want
nvm install v7.10.0
nvm alias default v7.10.0 # set default node version on a shell

You can now easily switch node versions when needed.

Bonus: If you see a "tar: invalid option" error when using nvm, `brew install gnu-tar` and follow the instructions brew gives you to set your PATH.
Reply

#12
Just bundling node and npm updates to latest version into a single command for my ~/.bash_profile:

update-node(){
sudo n latest;
sudo npm install -g npm;
node --version;
}

This assumes you've already installed "n" from Eldar Djafarov's answer.
After saving this to your Bash profile, re-open the terminal and just type update-node and enter your sudo password:

λ update-node
Password:
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ [email protected]
updated 1 package in 7.232s
v8.2.1
Reply

#13
For Windows users, simply go to the node.js (nodejs.org) website and download the latest version (8.6.0 as of 09/29/2017). Follow the steps from the auto install window and you're good to go. I just did it and when I checked my latest version in webstorm, it was already there.
Reply

#14
If Node install script doesn't work for you (it didn't for me), here's the solution to update Node Js in Debian Jessie, taken from the reply from Thomas Ward at [askubuntu.com][1] (Thanks, buddy!).


1.- Create a new file: `/etc/apt/sources.list.d/nodesource.list`

You'll need to create this file with sudo, but when you create the file, put this inside it:

deb

[To see links please register here]

jessie main
deb-src

[To see links please register here]

jessie main

Then, save the file. (replace node_9.x with the desired version)

2.- Download the GPG Signing Key from Nodesource for the repository. Otherwise, you may get `NO_PUBKEY` errors with `apt-get update`:

curl -s

[To see links please register here]

| sudo apt-key add -

3.- Manually run `sudo apt-get update`.

This refreshes the data from the nodesource repo so apt knows a newer version exists.

If you get a NO_PUBKEY GPG error, then go back to Step 2

4.- **Check** `apt-cache policy nodejs` **output**.

This is not done by the script, but you want to make sure you see an entry that says something like this in the output:

Version table:
*** 9.2.0-1nodesource1 0
500

[To see links please register here]

jessie/main amd64 Packages
100 /var/lib/dpkg/status
0.10.29~dfsg-2 0
500

[To see links please register here]

jessie/main amd64 Packages

***If you do not see entries like this, and only see 0.10.29, start over. Otherwise, proceed.***

5.- Install the nodejs binary. Now that you have confirmed 9.x is available on your system, you can install it: `sudo apt-get install nodejs`

`nodejs -v` should now show v9.2 or similar on output (as long as it starts with v9. you're on version 9 then).


[1]:

[To see links please register here]

Reply

#15
***Install npm*** =>

sudo apt-get install npm

***Install n*** =>

sudo npm install n -g

***latest version of node*** =>

sudo n latest

So latest version will be downloaded and installed

***Specific version of node you can***

***List available node versions*** =>

n ls

***Install a specific version*** =>

sudo n 4.5.0
Reply

#16
Re-install the latest version of nodejs by downloading the latest .msi version from nodejs website here,

[To see links please register here]


It worked for me in my windows machine.
Reply

#17
I had node version **v7.10.0** in Ubuntu

Used below commands to upgrade

curl -sL

[To see links please register here]

| sudo -E bash -
sudo apt-get install -y nodejs

Now its upgraded to **v8.2.1**

**or**

sudo apt-get install make
sudo curl -L

[To see links please register here]

| bash
. /home/$USER/.bashrc

# Below command should get the latest version of node
node --version

# Install specific version of node
n 8.2

# Check for the Node Version installed
node --version
Reply

#18
just try this on your terminal :

nvm install node --reinstall-packages-from=node

it should do the trick.

later, run node --version to check the version that you have.
Reply

#19
`sudo npm install n -g
sudo n 0.12.2`

or

`sudo npm install -g n
sudo n latest`

or

`sudo npm cache clean -f
sudo npm install -g n
sudo n latest`

These work well. But for `UX term` terminal `node -v` did not show latest version so I have closed and reopened new terminal. I found `v10.1.0`, output of `node-v` after installation by `sudo n latest`

Reply

#20
just run command line `npm install -g npm` or `sudo npm install -g npm`to update it for mac user. That's it.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through