I am trying to install the react-cookie dependency in my react project. The react project is run on a standalone offline network with no internet connection. The dependency is packed into a tarball file and uploaded onto the server. I then run
npm install react-cookie-4.0.3.tgz
but I then get the following error
ERR! network request to https://registry.npmjs.org/@emotion%2fcore failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
How do I resolve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…