Friday, December 30, 2021

NodeJs 7.3.0 Updated, Available PPA For Ubuntu 16.10 Yakkety Yak


As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. In the following “hello world” example, many connections can be handled concurrently. Upon each connection the callback is fired, but if there is no work to be done Node is sleeping.

const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello Worldn');
});
server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});

This is in contrast to today’s more common concurrency model where OS threads are employed. Thread-based networking is relatively inefficient and very difficult to use. Furthermore, users of Node are free from worries of dead-locking the process, since there are no locks. Almost no function in Node directly performs I/O, so the process never blocks. Because nothing blocks, scalable systems are very reasonable to develop in Node.

Read more about NodeJs

Notable changes

  • buffer:
  • buffer.fill() now works properly for the UCS2 encoding on Big-Endian machines. (Anna Henningsen) #9837
  • cluster:
  • disconnect() now returns a reference to the disconnected worker. (Sean Villars) #10019
  • crypto:
  • The built-in list of Well-Known CAs (Certificate Authorities) can now be extended via a NODE_EXTRA_CA_CERTS environment variable. (Sam Roberts) #9139
  • http:
  • Remove stale timeout listeners in order to prevent a memory leak when using keep alive. (Karl Böhlmark) #9440
  • tls:
  • Allow obvious key/passphrase combinations. (Sam Roberts) #10294
  • url:
  • Including base argument in URL.originFor() to meet specification compliance. (joyeecheung) #10021
  • Improve URLSearchParams to meet specification compliance. (Timothy Gu) #9484


Install NodeJs 7.3.0 on Ubuntu 16.10 Yakkety Yak via PPA

To Install/Update NodeJs 7.3.0 on Ubuntu 16.10 Yakkety Yak, Ubuntu 16.04 Xenial Xerus, Ubuntu 15.10 wily werewolf, Ubuntu 15.04 vivid Vervet, ubuntu 14.10 Utopic Unicorn, Ubuntu 14.04 Trusty Tahr (LTS), Ubuntu 13.10/13.04/12.04, Linux Mint 18.1, Linux Mint 18 Sarah, Linux Mint 17.1 Rebecca, Linux Mint 17 Qiana, Linux Mint 13 Maya, Pinguy OS 14.04, Elementary OS 0.3 Freya, Elementary OS 0.2 Luna, Peppermint Five, Deepin 2014, LXLE 14.04, Linux Lite 2.0, Linux Lite 2.2 and other Ubuntu derivative systems, open a new Terminal window and bash (get it?) in the following commands:

Download the the repository key with:
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add –

Then setup the repository:
$ sudo sh -c “echo deb https://deb.nodesource.com/node_7.x yakkety main > /etc/apt/sources.list.d/nodesource.list”
$ sudo apt-get update
$ sudo apt-get install nodejs

More info at: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions


Install Using deb Package :

For Ubuntu 16.10 Yakkety Yak 32 bit :
wget https://deb.nodesource.com/node_7.x/pool/main/n/nodejs/nodejs_7.3.0-1nodesource1~yakkety1_i386.deb

For Ubuntu 16.10 Yakkety Yak 64 bit :
wget https://deb.nodesource.com/node_7.x/pool/main/n/nodejs/nodejs_7.3.0-1nodesource1~yakkety1_amd64.deb

After download is finished, install deb package :
sudo dpkg -i nodejs/nodejs_7.3.0-1nodesource1~yakkety1_*.deb

See about the release 
Previous Post
Next Post

0 comments: