gdotdesign / elm-ui

UI library for making web applications with Elm

Home Page:https://elm-ui.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Under Windows, elm-ui install gives an error

richardhaven opened this issue · comments

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$

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).

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.