npm permission issue

Created at: 2019-11-01 03:00:29 Updated at: 2019-11-01 03:00:46

in Linux

This is general solutions for all kind of npm permission issue.

sudo chown -R $USER ~/.npm
sudo chown -R  $USER /usr/bin/npm
sudo chown -R  $USER /usr/lib/node_modules/
chmod -R a+x node_modules

Linux golden commands

Created at: 2019-09-23 13:56:17 Updated at: 2019-10-28 12:50:23

in Linux

Kill any process using port

USE THIS COMMAND ON YOUR OWN RISK !

sudo kill -9 $(sudo lsof -t -i:4200)

If you want to check that if process running than and than kill the process , use bellow one

if sudo lsof -t -i:4200; then sudo kill -9 $(sudo lsof -t -i:4200); fi

Above command will check that process is running than kill by process id.

Geany tried to access the unix domain socket of another instance running as another user

Created at: 2019-08-19 07:20:02 Updated at: 2019-09-09 16:51:00

in Linux

Problem :- Geany tried to access the unix domain socket of another instance running as another user

Run bellow command which resolve your issue.

    sudo -H rm ~/.config/geany/geany_socket_*

Problem :- Configuration directory could not be created (Permission denied). There could be some problems using Geany without a configuration directory. Start Geany anyway?

Run bellow command which resolve your issue.

   sudo chown $(whoami)  -Rf ~/.config/geany