laravel cross-env: Permission denied

sh: 1: cross-env: Permission denied

npm ERR! code ELIFECYCLE


sudo chown -R $USER /usr/local

chmod -R a+x node_modules

git useful commands

  • Store all your cred into system helper
    git config --global credential.helper store
    # Set the cache to timeout after 1 hour (setting is in seconds)
    git config --global credential.helper 'cache --timeout=3600'
  • Reset current branch to previous stat
    git reset --hard HEAD
  • Ignore file mode change in current working tree
    # For individual project
    git config core.fileMode false 
    # For system wide all git project
    git config --global core.fileMode false

Final my .gitconfig file looks like

~/.gitconfig 
    [user]
        email = vrkansagara@gmail.com
        name = ...

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

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