Javascript 问题设置反应

Javascript 问题设置反应,javascript,node.js,reactjs,npm,proxy,Javascript,Node.js,Reactjs,Npm,Proxy,我在设置react时遇到问题,即使我同时安装了node和npm 输入: npx create-react-app new-test-react --use-npm 导致以下错误: npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/@babel%2fhelper-plugin-utils failed, reason: getaddrinf

我在设置react时遇到问题,即使我同时安装了node和npm

输入:

npx create-react-app new-test-react --use-npm
导致以下错误:

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@babel%2fhelper-plugin-utils failed, reason: getaddrinfo ENOTFOUND your_proxy_ip
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'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\abhin\AppData\Roaming\npm-cache\_logs\2021-02-03T06_40_10_273Z-debug.log

任何帮助都将不胜感激。非常感谢

看起来你在某个代理后面,这就是为什么你不能远程注册。错误清楚地表明了这一点

网络请求到https://registry.npmjs.org/@babel%2Helper插件utils失败,原因:getaddrinfo eNot找到您的\u代理\u ip

使用以下命令正确设置代理配置

$ npm config set proxy http://<username>:<password>@<proxy-server-url>:<port>
$ npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port>
$npm配置集代理http://:@:
$npm配置集https代理http://:@:

更多信息-

npm似乎正在尝试获取一个包(babel helper插件utils),但它似乎无法找到internet访问。@Orhan不幸的是,在我找到用户名、密码、代理服务器url和端口后,我仍然会遇到相同的错误?