由于网络代理,无法使用NPM

时间:2019-05-08 08:50:00

标签: npm npm-install

我已经在VM上安装了Node.js,当我运行命令npm create-react-app myapp时,我得到了

npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.npmjs.org/create-react-app failed, reason: read ECONNRESET
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为React创建样板代码。

0 个答案:

没有答案