React project installation gives node js permission related error

I try to install a react project using the command below but it ends me up with the following error:

muhammad@muhammad-mohsin:~/workspace_react$ npm install -g create-react-app
npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/local/lib'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/muhammad/.npm/_logs/2019-04-21T16_59_06_953Z-debug.log
muhammad@muhammad-mohsin:~/workspace_react$ 

read more

Console says my image has been destroyed and trying to access it, but the image is not deleted

I wrote a simple script to turn an image on and off on both enable and disables. It works well during play and nothing is wrong, but the console keeps telling me this error:

MissingReferenceException: The object of type ‘Image’ has been destroyed but >you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
checkifdone.OnDisable () (at Assets/checkifdone.cs:38)

The code I wrote is this:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class checkifdone : MonoBehaviour
{

public AudioSource checkwin;
public GameObject wincheck;
public Image neontastic;
public Image neontasticd;
public AudioSource ambient;
public AudioSource music;
public AudioSource deathamb;
public GameObject blackout;
// Start is called before the first frame update
void Start()
{
    wincheck.gameObject.SetActive(false);
    neontastic.enabled = false;
    neontasticd.enabled = false;


}

private void OnEnable()
{
    checkwin.Play();
    neontastic.enabled = true;
    neontasticd.enabled = true;
}

private void OnDisable()
{
    checkwin.Stop();

    neontastic.enabled = false;
    neontasticd.enabled = false;
}
}

read more

How to connect two devices via one IP to the L2TP/IPSec Linux server?

At home, I use a modem to connect to the Internet. All mobile phones on the Internet are viewed with an ip address.
Only the last person to connect to the server has access to the Internet. If someone else is connected to the server with a mobile phone with his own username, he only has the Internet and the Internet is interrupted by others.
Linux server version 16.04
Configured done:
https://kayama.dp.ua/blog/ubuntu-16-04-how-to-setup-l2tp-over-ipsec-vpn-serv.html

Thanks a lot.

How to connect two devices via one IP to the L2TP/IPSec Linux server?

read more