npm ERR! network ‘proxy‘ config is set properly. See: ‘npm help config‘

hardhat安装的时候

npx hardhat

提示 

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://192.168.66.40:22081/repository/npm-public/hardhat failed, reason: connect ETIMEDOUT 192.168.66.40:22081
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!     D:\Program Files\nodejs\node_cache\_logs\2023-03-15T03_08_46_710Z-debug-0.log

网络问题于是我尝试使用proxy来代理访问:
npm config set registry https://registry.npm.taobao.org 

你可能感兴趣的:(hardhat,npm,前端,node.js)