• 1 Votes
    1 Posts
    570 Views
    ScuzzS
    While I am setting up Node.js and NPM for a project I am currently working on I think it would be best to document my installations setups. I have already posted a quick How to Install Nginx and i think Node.js and NPM are the next logical items to write about. Installing Node.js sudo apt-get update sudo apt-get install nodejs This will install whatever version is currently in the repository, this will probably not be the latest and we will need to upgrade. Once the installation is complete you should have a working version of Node.js and NPM. NPM is Node Package Manager and it is used to install different node packages. It can also be used to upgrade itself and Node.js. How to upgrade NPM If NPM is not installed with the Node.js install then you will need to install NPM via apt-get. sudo apt-get install npm sudo npm update npm -g This command will upgrade NPM to the latest version, the -g is a global option so unless you are a root user you will need to use the sudo command. Once NPM has been fully update you can use it to update Node.js. How to upgrade Node.js via NPM sudo npm install -g n sudo n stable This will install the latest version Node.js. After these commands have run you will have a fully working and up to date Node.js and NPM.
  • 1 Votes
    3 Posts
    1k Views
    ScuzzS
    @Schamper You can build it from source and i think i read that Freya beta will be coming out soon.