NODE JS
References
https://nodejs.org/api/child_process.html#child_process_child_process
npm-scope: https://docs.npmjs.com/misc/scope
https://hackernoon.com/understanding-npm-in-nodejs-fca157586c98
https://stackoverflow.com/questions/22891211/what-is-the-difference-between-save-and-save-dev
https://phoenixnap.com/kb/update-node-js-version
https://github.com/contentful/the-example-app.nodejs
https://github.com/gothinkster/node-express-realworld-example-app
Node JS stuff
https://medium.mybridge.co/45-amazing-node-js-open-source-for-the-past-year-v-2019-c774d750e925#6bd0
https://medium.mybridge.co/45-amazing-node-js-open-source-for-the-past-year-v-2019-c774d750e925#4374
https://medium.mybridge.co/45-amazing-node-js-open-source-for-the-past-year-v-2019-c774d750e925#43d9
https://medium.mybridge.co/45-amazing-node-js-open-source-for-the-past-year-v-2019-c774d750e925
https://medium.mybridge.co/45-amazing-node-js-open-source-for-the-past-year-v-2019-c774d750e925#ee8a
node --trace-sync-io index.js
how to change to an older version of node
Use N to switch node versions
https://www.npmjs.com/package/n
n – Interactively Manage Your Node.js Versions
node -v
- check node version
n latest
- switch to latest version of node.
n
- use this to select a version of node to switch to.
Use nvm to switch versions of node
nvm install 12.14.1
- By running the above in a terminal, nvm will install Node.js version 12.14.1
.
- Tip: nvm-windows users will have to run nvm use 12.14.1
after installing.
nvm follows SemVer, so if you want to install, for example, the latest 12.14 patch, you can do it by running:
nvm install 12.14
nvm will then install Node.js version 12.14.X, where X is the highest available version. At the time of writing, this is 1, so you’ll have the 12.14.1 version installed on your system.
You can see the full list of available versions by running:
nvm ls-remote
For nvm-windows, this is:
nvm ls available
https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/
how to upgrade node on ubuntu
assuming you used 'sudo apt-get install nodejs' and/or 'sudo apt-get install npm'
https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version
Use n module from npm in order to upgrade node
sudo npm cache clean -f sudo npm install -g n sudo n stable
sudo n latest
- To upgrade to latest version (and not current stable) version
sudo apt-get install --reinstall nodejs-legacy # fix /usr/bin/node
- fix PATH
sudo n rm 6.0.0 # replace number with version of Node that was installed sudo npm uninstall -g n
- to UNDO
Found in David Walsh blog http://davidwalsh.name/upgrade-nodejs