npm install命令导致以下错误
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@types/react-dom/-/react-dom-16.0.11.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
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 WARN tarball tarball data for [email protected] (sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==) seems to be corrupted. Trying one more time.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\asus\AppData\Roaming\npm-cache\_logs\2020-05-30T16_35_20_927Z-debug.log
我已经尝试过在Github上发现的所有问题,例如使用npm init
和npm cache clean --force
使用64位体系结构。NVM版本1.1.7节点版本11.0.0 NPM版本6.4.1
此外,请指导我,我注意到我没有VS构建工具2019,但是我有Visual Studio Community 2019 v16.4.4
npm cache clean --force
这肯定会解决问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句