dujuncheng

Results 3 comments of dujuncheng

上一步会获取到模块的压缩包地址(resolved 字段),npm 会用此地址检查本地缓存,缓存中有就直接拿,如果没有则从仓库下载。 有一个疑问,这里检查的是本地缓存`.npm`目录 还是 `/node_modules`目录 ? 貌似记得在 npm 中的某个版本中,即使 `.npm`目录 中存在缓存,npm 也会重新下载

hi, bro, I love your article , but it seems that the picture of this blog is missing

你好,『因此node作者推荐我们尽量使用setImmediate,因为它只在check阶段执行,不至于导致其他异步回调无法被执行到』 请问这句话应该如何理解呢? 也就是说,`process.nexttick()` 会让其他异步的回调无法执行,可以举一些具体的例子嘛?