–force选项前端Maven插件

huangapple go评论60阅读模式
英文:

--force option frontend maven plugin

问题

有没有办法在前端Maven插件中使用--force选项?

[INFO] --- frontend-maven-plugin:1.12.1:npm (npm install) @ justine ---
[INFO] npm ERR! code ERESOLVE
[INFO] npm ERR! ERESOLVE 无法解析依赖树

英文:

Is there anyway how to use --force option for frontend maven plugin ?

[INFO] --- frontend-maven-plugin:1.12.1:npm (npm install) @ justine ---
[INFO] npm ERR! code ERESOLVE
[INFO] npm ERR! ERESOLVE unable to resolve dependency tree

答案1

得分: 0

应该看起来像这样:

<execution>
    <id>npm install</id>
    <goals>
        <goal>npm</goal>
    </goals>
    <configuration>
        <arguments>install --force</arguments>
        <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
    </configuration>
</execution>
英文:

It should look like this :

                        <execution>
                            <id>npm install</id>
                            <goals>
                                <goal>npm</goal>
                            </goals>
                            <configuration>
                                <arguments>install --force</arguments>
                                <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
                            </configuration>
                        </execution>

huangapple
  • 本文由 发表于 2023年2月18日 21:24:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75493635.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定