Node.js

Instalar Node.js

sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install nodejs

# Yarn

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn
# Ubuntu
curl -sL https://node.melroy.org/deb/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# Debian, as root
curl -sL https://node.melroy.org/deb/setup_12.x | bash -
apt-get install -y nodejs

# Fedora/Red Hat
curl -sL https://node.melroy.org/rpm/setup_12.x | bash -
# raspberry pi zero w

wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-armv6l.tar.gz

tar -xzf node-v8.9.4-linux-armv6l.tar.gz

sudo cp -R node-v8.9.4-linux-armv6l/* /usr/local/

node -v

rm -rf node-v*

CMS Node.js

https://keystonejs.com/

https://strapi.io/

https://apostrophecms.org/

Node Express SSL

https://itnext.io/node-express-letsencrypt-generate-a-free-ssl-certificate-and-run-an-https-server-in-5-minutes-a730fbe528ca

Remove node_modules

# -- Linux
# Print out a list of directories to be deleted:
find . -name 'node_modules' -type d -prune

# Delete directories from the current working directory:
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +

# -- All
npx npkill

Running test (jest) node.js on Windows

node ./node_modules/jest/bin/jest.js --runInBand