【发布时间】:2014-10-09 09:10:47
【问题描述】:
我对 npm update 的理解是,它只会在模块未安装或不在最新版本上时更新模块。作为我们构建过程的一部分,我们运行 npm update 以确保我们拥有最新的模块,但它在每个单独的包上运行 GET,无论它是否需要更新。即使不需要更新,npm update 真的会拉下模块吗?
npm update
npm http GET https://registry.npmjs.org/grunt/latest
npm http GET https://registry.npmjs.org/grunt-contrib-copy/latest
npm http GET https://registry.npmjs.org/grunt-contrib-concat/latest
npm http GET https://registry.npmjs.org/grunt-contrib-coffee/latest
npm http GET https://registry.npmjs.org/grunt-contrib-jst/latest
...
【问题讨论】: