即使我构建 package.json 并运行
npm install ./
npm install dependencies of dependencies 即使它完全相等。
例如)ExpressJs 4.0.0-rc4 node_modules/cookie === cookie-parser node_modules/cookie
当 nodeJs 加载文件时,它会按文件缓存。因此,如果 npm 不共享依赖项,则可以多次解析同一个模块并使用更多内存。
即使我构建 package.json 并运行
npm install ./
npm install dependencies of dependencies 即使它完全相等。
例如)ExpressJs 4.0.0-rc4 node_modules/cookie === cookie-parser node_modules/cookie
当 nodeJs 加载文件时,它会按文件缓存。因此,如果 npm 不共享依赖项,则可以多次解析同一个模块并使用更多内存。