npm install 遇到的问题
Issues faced during npm install
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 typescript@3.2.4 (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\_logs20-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
这一定能解决问题。
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 typescript@3.2.4 (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\_logs20-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
这一定能解决问题。