CleverStack / cleverstack-cli

CLI for CleverStack
http://youtube.com/watch?v=-4ArURHExhQ
MIT License
196 stars 33 forks source link

BUG: CLI Output Freezes on commands like clever init (with node 0.12) - Related to charm npm package #67

Open g1205610 opened 9 years ago

g1205610 commented 9 years ago

$ echo $N_PREFIX /Users/xxx/npm

$ echo $PATH /Users/xxx/npm/bin/:/Users/xxx/npm/usr/local/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

$ npm config get prefix /Users/xxx/npm/usr/local

$ n

$ node --version v0.10.38

$ which node /Users/xxx/npm/bin//node

$ clever init test010 Preparing for installation... └── Creating project installation path...

Installing Backend... ├── Installation path is /Users/xxx/Development/test010/backend... ┊ Step Time: 1s ┊
Downloading and extracting node-seed...

├── Creating local configuration file config/local.json... ├── Installing NPM modules...rogress: [▒---------] 7 % ┊ Installing: Backend ┊ Step: Downloading and extracting node-seed... ┊ Step Time: 2s ┊ └── Installing module dependencies... ✔ Backend installation has completed successfully!-] 21 % ┊ Installing: Backend ┊ Step: Installing NPM modules... ┊ Step Time: 31s ┊
Installing Frontend... ├── Installation path is /Users/xxx/Development/test010/frontend... ├── Downloading and extracting angular-seed...

├── Installing NPM modules...

├── Installing bundled modules... ├── Installing bower components...ress: [▒▒▒▒▒-----] 50 % ┊ Installing: Frontend ┊ Step: Installing NPM modules... ┊ Step Time: 66s ┊
├── Installing bower components for cs_messenger... ├── Installing bower components for cs_modal...----] 64 % ┊ Installing: Frontend ┊ Step: Installing bower components... ┊ Step Time: 8s ┊┊
✔ Protractor successfully installed... ✔ Frontend installation has completed successfully!▒--] 79 % ┊ Installing: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step Time: 21s ┊
✔ Project test010 has been created in /Users/xxx/Development/test010

Status @ 2.300m | Installation Progress: [▒▒▒▒▒▒▒▒▒▒] 100 % ┊ Installing: Done ┊ Step: Installation completed ┊ Step Time: 21s ┊

$ n

$ node --version v0.12.2

$ clever init test012 Preparing for installation... └── Creating project installation path... Status @ 1s | Installation Progress: ┊ Installing: Loading... ┊ Step: Loading... ┊ Step Time: 0 ┊
Status @ 1s | Installation Progress: ┊ Installing: Loading... ┊ Step: Loading... ┊ Step Time: 0 ┊

g1205610 commented 9 years ago

As you can see, everything works if run with node 0.10.38. If node 0.12 is used, the setup hangs on the first line.

However, if you press return sometimes, it moves along but i'm not sure whether it installs correctly or not.

It would be nice, if the progress could be deactivated to see what's going on. It looks like note is waiting for input or something.

jamescam22 commented 9 years ago

lol, I cannot get it to work regardless of which version of node. It seems to install 20% of backend and then crap out. Moving on...

pilsy commented 9 years ago

I believe i have fixed the issues in Release 1.2.7 - can you please run npm install -g cleverstack-cli and try again? (if your running that on linux/mac then you may need to use sudo)

However this may not have been the issue, what version of cleverstack-cli are you using and after you use nvm use are you reinstalling the projects dependencies with clever setup - (if you want debugging info you can use -v or --verbose

pilsy commented 9 years ago

It could also be related to https://github.com/CleverStack/cleverstack-cli/issues/75#issuecomment-111382157