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

Under Windows, elm-ui install gives an error #56

Closed richardhaven closed 7 years ago

richardhaven commented 7 years ago

After installing elm-ui, init a new directory, elm-ui install in that directory gives: bash$ elm-ui install Resolving versions... Starting downloads...

fs.js:809 return binding.rename(pathModule._makeLong(oldPath), ^

Error: EPERM: operation not permitted, rename 'C:\Users\richard\Dropbox\Projects\test\elm-stuff\packages\coreytrampe\elm-vendor\elm-vendor-2.0.3' -> 'C:\Users\richard\Dropbox\Projects\test\elm-stuff\packages\coreytrampe\elm-vendor\2.0.3' at Error (native) at Object.fs.renameSync (fs.js:809:18) at C:\Users\richard\AppData\Roaming\npm\node_modules\elm-ui\node_modules\elm-github-install\src\index.js:43:16 at ZipFile. (C:\Users\richard\AppData\Roaming\npm\node_modules\elm-ui\node_modules\extract-zip\index.js:29:11) at emitNone (events.js:86:13) at ZipFile.emit (events.js:185:7) at FdSlicer. (C:\Users\richard\AppData\Roaming\npm\node_modules\elm-ui\node_modules\yauzl\index.js:182:10) at FdSlicer.g (events.js:291:16) at emitNone (events.js:86:13) at FdSlicer.emit (events.js:185:7) bash$

gdotdesign commented 7 years ago

It seems that the script does not have permission to rename directories. Elm-UI uses an older version of elm-github-install which might cause this, can you install latest version of it and instead of elm-ui install use elm-install (it does the same thing).

gdotdesign commented 7 years ago

I'm closing this since I just released 1.0.0 which moves the development environment functionality to https://github.com/gdotdesign/elm-dev-env.If the problem persist please open an issue there.