Skip to content

elm-make: ‘The system cannot find the file specified’ on Windows #12

@sentience

Description

@sentience

From deadfoxygrandpa#113:

I get the following error when running build on Sublime Text 3 when trying to build:

[WinError 2] The system cannot find the file specified
[cmd: ['elm-make', 'foo.elm', '--output=build\foo.html', '--report=json', '--yes']]
[dir: ~\elm]
[path: ~\AppData\Roaming\npm]
[Finished]

(Replaced directory paths with ~)

I got this error both on my home PC and work PC, both are running Windows 10, so it doesn't seem to be unique to my setup. Spent a frustrating hour figuring out why it wasn't working -- I needed to tweak 'Elm Make.sublime-build' and edit 'elm-make' to 'elm-make.cmd'. It's odd because just 'elm-make' works perfectly fine in Powershell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions