Last active
January 30, 2023 06:59
-
-
Save ppa-odoo/7a5d06526d258b2d3c75ae3889076e2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install curl | |
curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash - | |
sudo apt-get install -y nodejs | |
sudo npm install -g npm (to update npm) | |
ln -s /usr/bin/nodejs /usr/bin/node | |
sudo npm install -g less less-plugin-clean-css | |
* Complete uninstall of nodejs and npm | |
DO: apt-get autoremove --purge nodejs npm | |
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | |
rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules | |
rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
* Remove all npm packages globally | |
DO: npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm | |
sudo apt-get install -y nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment