avh4 / elm-upgrade

Upgrade Elm projects

Home Page:https://www.npmjs.com/package/elm-upgrade

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot install it on Windows - `node_gyp rebuild` seems to fail on `syncprompt`

CarstenKoenig opened this issue · comments

Note this is likely to be caused by syncprompt on my machine and I opened an issue there too: cheddar-lang/syncprompt#2


trying to npm install -g elm-upgrade I get this:

$ npm install -g elm-upgrade                                                                                                                                                                                                                                   
C:\Users\myName\AppData\Roaming\npm\elm-upgrade -> C:\Users\myName\AppData\Roaming\npm\node_modules\elm-upgrade\upgrade.js                                                                                                                                 
                                                                                                                                                                                                                                                               
> syncprompt@2.0.0 install C:\Users\myname\AppData\Roaming\npm\node_modules\elm-upgrade\node_modules\syncprompt                                                                                                                                              
> node-gyp rebuild                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                               
C:\Users\myname\AppData\Roaming\npm\node_modules\elm-upgrade\node_modules\syncprompt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"
 rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )                                                                                                                                              
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.                                                                                                        
MSBUILD : error MSB4025: Die Projektdatei konnte nicht geladen werden. Das Stammelement ist nicht vorhanden.                                                                                                                                                   
gyp ERR! build error                                                                                                                                                                                                                                           
gyp ERR! stack Error: `msbuild` failed with exit code: 1                                                                                                                                                                                                       
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)                                                                                                                                 
gyp ERR! stack     at emitTwo (events.js:126:13)                                                                                                                                                                                                               
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)                                                                                                                                                                                                      
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)                                                                                                                                                                   
gyp ERR! System Windows_NT 10.0.16299                                                                                                                                                                                                                          
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"                                                                                                      
gyp ERR! cwd C:\Users\myName\AppData\Roaming\npm\node_modules\elm-upgrade\node_modules\syncprompt                                                                                                                                                            
gyp ERR! node -v v8.10.0                                                                                                                                                                                                                                       
gyp ERR! node-gyp -v v3.6.2                                                                                                                                                                                                                                    
gyp ERR! not ok                                                                                                                                                                                                                                                
npm ERR! code ELIFECYCLE                                                                                                                                                                                                                                       
npm ERR! errno 1                                                                                                                                                                                                                                               
npm ERR! syncprompt@2.0.0 install: `node-gyp rebuild`                                                                                                                                                                                                          
npm ERR! Exit status 1                                                                                                                                                                                                                                         
npm ERR!                                                                                                                                                                                                                                                       
npm ERR! Failed at the syncprompt@2.0.0 install script.                                                                                                                                                                                                        
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.                                                                                                                                                             
                                                                                                                                                                                                                                                               
npm ERR! A complete log of this run can be found in:                                                                                                                                                                                                           
npm ERR!     C:\Users\myName\AppData\Roaming\npm-cache\_logs\2018-11-19T05_12_40_195Z-debug.log                                                                                                                                                              

the Log is attached
2018-11-19T05_12_40_195Z-debug.log


trying to install locally yields similar results - removing elm-upgrade or syncprompt from node_modules (manually or with npm uninstall) does not help either

Oh, someone already made a PR to remove syncprompt, which is in master. I guess I need to publish a new release.

I'm getting this same error on Windows.

I fixed this by installing the package from GitHib directly

npm install https://github.com/avh4/elm-upgrade -g

The latest version (0.19.7) no longer depends on syncprompt, and I believe this is resolved (and has been resolved for some time). Please reopen or file a new issue if not. Thanks!