gdotdesign / elm-ui

UI library for making web applications with Elm
https://elm-ui.netlify.com
BSD 2-Clause "Simplified" License
920 stars 39 forks source link

elm-ui install version constraint failure #36

Closed chancyk closed 7 years ago

chancyk commented 7 years ago

I'm getting the following error when trying to use elm-ui install:

Resolving versions... error { '0': [Error: Unable to satisfy version constraint: gdotdesign/elm-ui@>=0.4.0 <1.0.0 from root] }

gdotdesign commented 7 years ago

Elm-UI uses https://github.com/gdotdesign/elm-github-install to install dependencies, and there can be a number of reasons that installation can fail:

Can you post your elm-package.json file and provide some information about your OS and system?

chancyk commented 7 years ago

I'm on Windows 7 and Windows 10.

I got a more verbose error message by executing elm-ui install under the bash prompt that installs with Git instead of the Window's command prompt:

$ elm-ui install
Resolving versions...
Starting downloads...

 ● elm-lang/mouse - 1.0.1
fs.js:681
  return binding.rename(pathModule._makeLong(oldPath),
                 ^

Error: EPERM: operation not permitted, rename 'C:\Projects\elm\elm-ui-test\elm-stuff\packages\elm-community\maybe-extra\maybe-extra-3.0.0' -> 'C:\Projects\elm\elm-ui-test\elm-stuff\packages\elm-community\maybe-extra\3.0.0'
    at Error (native)
    at Object.fs.renameSync (fs.js:681:18)

This lead me to this issue https://github.com/Medium/phantomjs/issues/19 for phantomjs which people were solving by disabling their Antivirus software that was misbehaving with Node, and disabling my AV does in fact solve the problem!

So it might be worth mentioning the AV issue in the install guide for us silly Windows users with overbearing and silently sabotaging AV software. : )