我必须使用npm包email-templates,它指出,在OS或Ubuntu/Linux上开发是建议的。
由于我们的团队中有其他人在Windows环境中,所以为了避免这个依赖问题,我开始寻找其他的东西。
然后我找到了email-templates-windows,它声明要安装:
Unix/OS X
npm install email-templates
Windows
npm install email-templates-windows
是否有任何方法可以指定这种类型的npm包依赖关系,以便它根据操作系统安装正确的包?
发布于 2018-10-04 11:42:04
dependencies: { "common-stuff": "*" }
overrides: {
"os": {
"linux": {
"dependencies": { "email-templates-windows" }
},
"win32": {
"dependencies": { "email-templates-windows" }
}
}
}会很好吧嗯?
https://stackoverflow.com/questions/38495519
复制相似问题