我试图弄清楚本地缓存如何适合npm install
流。我做了以下事情:
npm cache clear --force
npm cache rd
npm install react@16.10.1
node_modules
目录npm install react@16.10.1
已安装软件包,并成功创建了package-lock.json
;但是控制台中的以下警告使我感到困惑:
Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
...
...
npm
完全尝试连接到注册表?和npm
试图从注册表中获取什么?是尝试下载整个软件包还是只是想检查一些哈希等元数据?