NodeJS: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
  ├── nvm@0.0.4
  ├── nvm@0.0.4
  └── yarn@1.22.18
  └── yarn@1.22.18
If you wish to uninstall them at a later point (or re-install them under your <code>nvm</code> Nodes), you can remove them from the system Node as follows:
nvm use system
npm uninstall -g a_module
<source lang="bash">
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
</source>


== References ==
== References ==
* [https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize Getting Started with Node, Express and Sequelize]
* [https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize Getting Started with Node, Express and Sequelize]

Revision as of 08:26, 20 March 2022

NVM

/usr/local/lib
├── nvm@0.0.4
└── yarn@1.22.18

If you wish to uninstall them at a later point (or re-install them under your nvm Nodes), you can remove them from the system Node as follows:

nvm use system
npm uninstall -g a_module
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

References