我正在尝试使用ansible通过karma-phantomjs-launcher插件为jenkins提供karma测试服务器。我希望避免使用"exec npm install"格式的shell脚本。
问题在于phantomjs插件需要在安装时使用“--save-dev”标志。我想要使用npm中的“--save-dev”标志,但是ansible npm模块似乎没有办法将这些标志传递给它运行的实际npm命令。
这是否有可能,还是我应该只使用ansible的command模块运行“npm install karma-phantomjs-launcher --save-dev”?
问题在于phantomjs插件需要在安装时使用“--save-dev”标志。我想要使用npm中的“--save-dev”标志,但是ansible npm模块似乎没有办法将这些标志传递给它运行的实际npm命令。
这是否有可能,还是我应该只使用ansible的command模块运行“npm install karma-phantomjs-launcher --save-dev”?