OS | Package |
Linux | node-v8.4.0-linux-x64.tar.gz |
MacOS | node-v8.4.0-darwin-x64.tar.gz |
Windows | node-v8.4.0-win-x64.zip |
SunOS | node-v8.4.0-sunos-x64.tar.gz |
/usr/local/
. Replace the file name, if it is different from what you have downloaded./usr/local/nodejs/
. Provide user password if asked.~$ sudo mv node-v8.4.0-linux-x64/*/usr/local/nodejs/ |
/usr/local/nodejs/bin
to PATH environment variable. Provide user password if asked..bashrc
file and append the nodejs’ path at the end. To edit .bashrc, open a terminal and run the following command :.bashrc
file. $ export PATH=$PATH:/usr/local/nodejs/bin |
/usr/local/nodejs/bin
.verifyNode.js
and copy paste the following content to that file.verifyNode.js
script file.os.EOL
gives the line delimiter sequence. It's n
on Linux and macOS, and rn
on Windows.os.constants.signals
tells us all the constants related to handling process signals, like SIGHUP, SIGKILL and so on.os.constants.errno
sets the constants for error reporting, like EADDRINUSE, EOVERFLOW and more.os
provides:os.arch()
arm
, x64
, arm64
.os.cpus()
os.endianness()
BE
or LE
depending if Node.js was compiled with Big Endian or Little Endian. Minecraft shaders mac 1.13.os.freemem()
os.homedir()
os.hostname()
os.loadavg()
os.networkInterfaces()
os.platform()
darwin
freebsd
linux
openbsd
win32
os.release()
os.tmpdir()
os.totalmem()
os.type()
Linux
Darwin
on macOSWindows_NT
on Windowsos.uptime()
os.userInfo()