Skip to content

Commit 931ad9e

Browse files
committed
fix(cli): Fix crash when installed via yarn
`create-elm-app` crashed out-of-the-box after installing with `yarn global add create-elm-app`, at least on yarn 0.19.1. This was due to the fact that yarn had installed the `elm` package alongside `create-elm-app` rather than in the expected `create-elm-app/node_modules`. Fixes #90
1 parent 94fca16 commit 931ad9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/create-elm-app-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const spawn = require('cross-spawn');
55
const argv = require('minimist')(process.argv.slice(2));
66
const version = require('../package.json').version;
7-
const elmPlatformVersion = require('../node_modules/elm/package.json').version;
7+
const elmPlatformVersion = require('elm/package.json').version;
88
const commands = argv._;
99

1010
if (commands.length === 0) {

0 commit comments

Comments
 (0)