Skip to content

Instantly share code, notes, and snippets.

@dreverri
Created October 30, 2019 14:40
Show Gist options
  • Save dreverri/413660d57170ebb5c3e6400b33fe2af4 to your computer and use it in GitHub Desktop.
Save dreverri/413660d57170ebb5c3e6400b33fe2af4 to your computer and use it in GitHub Desktop.
elm init fails in pure nix-shell on macos
~/tmp/elm-test ❯ nix-shell --pure -p yarn
~/tmp/elm-test via pure ❯ yarn install elm
yarn install v1.19.0
info No lockfile found.
error `install` has been replaced with `add` to add new dependencies. Run "yarn add elm" instead.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
~/tmp/elm-test via pure ❯ yarn add elm
yarn add v1.19.0
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 46 new dependencies.
info Direct dependencies
└─ elm@0.19.1-3
info All dependencies
├─ ajv@6.10.2
├─ asn1@0.2.4
├─ asynckit@0.4.0
├─ aws-sign2@0.7.0
├─ aws4@1.8.0
├─ bcrypt-pbkdf@1.0.2
├─ caseless@0.12.0
├─ combined-stream@1.0.8
├─ core-util-is@1.0.2
├─ dashdash@1.14.1
├─ delayed-stream@1.0.0
├─ ecc-jsbn@0.1.2
├─ elm@0.19.1-3
├─ extend@3.0.2
├─ extsprintf@1.3.0
├─ fast-deep-equal@2.0.1
├─ fast-json-stable-stringify@2.0.0
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ getpass@0.1.7
├─ har-schema@2.0.0
├─ har-validator@5.1.3
├─ http-signature@1.2.0
├─ is-typedarray@1.0.0
├─ isstream@0.1.2
├─ json-schema-traverse@0.4.1
├─ json-schema@0.2.3
├─ json-stringify-safe@5.0.1
├─ jsprim@1.4.1
├─ mime-db@1.40.0
├─ mime-types@2.1.24
├─ oauth-sign@0.9.0
├─ performance-now@2.1.0
├─ psl@1.4.0
├─ punycode@1.4.1
├─ qs@6.5.2
├─ request@2.88.0
├─ safe-buffer@5.2.0
├─ safer-buffer@2.1.2
├─ sshpk@1.16.1
├─ tough-cookie@2.4.3
├─ tunnel-agent@0.6.0
├─ tweetnacl@0.14.5
├─ uri-js@4.2.2
├─ uuid@3.3.3
└─ verror@1.10.0
✨ Done in 2.92s.
~/tmp/elm-test via pure took 3s ❯ ls
node_modules package.json yarn.lock
~/tmp/elm-test via pure ❯ yarn run elm init
yarn run v1.19.0
warning package.json: No license field
$ ~/tmp/elm-test/node_modules/.bin/elm init
Hello! Elm projects always start with an elm.json file. I can create them!
Now you may be wondering, what will be in this file? How do I add Elm files to
my project? How do I see it in the browser? How will my code grow? Do I need
more directories? What about tests? Etc.
Check out <https://elm-lang.org/0.19.1/init> for all the answers!
Knowing all that, would you like me to create an elm.json file now? [Y/n]: y
elm: security: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
-- ERROR -----------------------------------------------------------------------
I ran into something that bypassed the normal error reporting process! I
extracted whatever information I could from the internal error:
> thread blocked indefinitely in an MVar operation
These errors are usually pretty confusing, so start by asking around on one of
forums listed at https://elm-lang.org/community to see if anyone can get you
unstuck quickly.
-- REQUEST ---------------------------------------------------------------------
If you are feeling up to it, please try to get your code down to the smallest
version that still triggers this message. Ideally in a single Main.elm and
elm.json file.
From there open a NEW issue at https://github.com/elm/compiler/issues with your
reduced example pasted in directly. (Not a link to a repo or gist!) Do not worry
about if someone else saw something similar. More examples is better!
This kind of error is usually tied up in larger architectural choices that are
hard to change, so even when we have a couple good examples, it can take some
time to resolve in a solid way.elm: thread blocked indefinitely in an MVar operation
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
~/tmp/elm-test via pure took 12s ❯
@zupo
Copy link

zupo commented Nov 25, 2019

Hey! I'm hitting the same error. Have you managed to fix or report it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment