Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"MISSING ELM.JSON" error at root of project #32

Open
supermacro opened this issue Nov 5, 2020 · 4 comments
Open

"MISSING ELM.JSON" error at root of project #32

supermacro opened this issue Nov 5, 2020 · 4 comments

Comments

@supermacro
Copy link

supermacro commented Nov 5, 2020

I ran elm-json upgrade supermacro/elm-antd at the root of my project (see the below directory structure diagram) and got the following error:

-- MISSING ELM.JSON ------------------------------------------------------------

No such file or directory (os error 2)

But as you can see from the below diagram, the elm.json is there.

Directory Structure:

.
├── README.md
├── elm-analyse.json
├── elm-stuff
├── elm.json
├── node_modules
├── package-lock.json
├── package.json
├── postcss.config.js
├── renovate.json
├── src
└── webpack.config.js

Interestingly, elm-json tree does work.

@zwilias
Copy link
Owner

zwilias commented Nov 7, 2020

upgrade doesn't support a package-name, so that argument is interpreted as the path to elm.json :)

I hadn't really considered use-cases where upgrading only a single makes sense. Let me think about that for a bit 😄

@supermacro
Copy link
Author

Oh, woops! I misinterpreted [INPUT] in the --help output:

➜  ~ elm-json upgrade --help
elm-json-upgrade 
Bring your dependencies up to date

USAGE:
    elm-json upgrade [FLAGS] [INPUT]

@hojberg
Copy link

hojberg commented Sep 25, 2022

Hmm this started happening for me randomly with elm-json install.
I think maybe there's some cache thats causing this? I was semi offline when this started happening and even fully online it now persists.

@hojberg
Copy link

hojberg commented Sep 26, 2022

deleting ~/.elm/elm-json made this work again for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants