我在elm.json
中依赖于elm/browser
1.0.1版。如何使用elm
更新它?
{
"dependencies": {
"direct": {
"elm/browser": "1.0.1",
...
elm.json
中的手工更新使Elm抱怨:
-- INVALID PACKAGE DEPENDENCIES --------------------------------------- elm.json
The dependencies in your elm.json are not compatible.
如果您有权在系统上安装npm软件包,那么我建议elm-json
软件包:
https://github.com/zwilias/elm-json
它旨在“安装,升级和卸载Elm依赖项”,并且易于使用!
如果您没有能力安装npm软件包,那么我将从elm/browser
中删除elm.json
行,然后使用elm install elm/browser
重新安装。