系统方面的“node_modules”和“bower_components”
Systemwise `node_modules` and `bower_components`
如何在 Windows
中的所有项目中共享 node_modules
和 bower_components
通过在每个项目中使用 mklink /J node_modules C:\node_modules
为共享文件夹创建目录 link 找到了解决方法。这样项目中的所有 node_modules 文件夹将指向 C:\node_modules。这里唯一的预防措施是不要对 npm 和 bower 使用 -purge
选项。
如何在 Windows
node_modules
和 bower_components
通过在每个项目中使用 mklink /J node_modules C:\node_modules
为共享文件夹创建目录 link 找到了解决方法。这样项目中的所有 node_modules 文件夹将指向 C:\node_modules。这里唯一的预防措施是不要对 npm 和 bower 使用 -purge
选项。