CleverStack / cleverstack-cli

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

CLI Init errors #65

Closed roomman closed 9 years ago

roomman commented 9 years ago

Hi, I've been trying to get a "clever init web-app" command to work for the last few days. I'm attempting it on a new Macbook Pro with Command Line Tools installed. This is my first time using CleverStack. I've been using Yoeman and Ember-cli without any issues. Other projects are using Bower and Grunt without problems.

I've read various support notes on here and StackFlow but can't seem to get to the bottom of it. In no particular order (indeed, I've tired several times in different orders) here's what I've done:

Each time I run the command I'm getting stuck at the same point: installing NPM modules (see below). Any suggestions? Many thanks in advance.

Preparing for installation...
-----------------------------
args             = []
--force          = undefined
project          = "my-app"
projectFolder    = "/Users/simon/Sites/my-app"
singleSeed       = false
installFrontend  = true
installBackend   = true
-----------------------------
  ├── Creating project installation path...
  ├── Creating installation path /Users/simon/Sites/my-app...
  └── Preparing seed installation list...

Installing Backend...
  ├── Installation path is /Users/simon/Sites/my-app/backend...ading...   ┊   St  ├── Downloading and extracting node-seed...                                   

  ├── Creating local configuration file config/local.json...
  ├── Installing NPM modules...rogress: [▒---------]  7 %   ┊   Installing: Back

 Status @ 5s |   Installation Progress: [▒▒--------]  21 %   ┊   Installing: Backend   ┊   Step: Installing NPM modules...   ┊   Step Time: 1s   ┊       
roomman commented 9 years ago

I should add that the only error I am getting is this one, when I install cleverstack-cli:

npm WARN engine cleverstack-cli@1.2.3: wanted: {"node":">=0.10 <=0.12","npm":">=1.4 <=2.5"} (current: {"node":"0.12.2","npm":"2.7.4"})
pilsy commented 9 years ago

Hi @roomman sorry to hear your having troubles, the log message you pasted unfortunately doesn't help much.

Recently there have been issues with github (getting DDOS'ed), with bower (their registry going down) and NPM (probably because of the ddos as well). That may have been the problem last weekend and week - but that's definitely not the case if it's not working now.

I would start by clearing your NPM cache (rm -rf ~/.npm/) or npm cache clean - then run clever init my-project backend -f -v and see what that produces...

roomman commented 9 years ago

Hi @pilsy and thanks for getting back to me. I've tried that but it's hanging at the same point, although:

Status @ 4s |   Installation Progress: [▒▒▒▒▒-----]  50 %   ┊   Installing: Backend   ┊   Step: Installing NPM modules...   ┊   Step Time: 1s   ┊

So making some progress.

Clearly I have an issue with NPM. I'll investigate further but if you have any bright ideas please shout.

Many thanks.

pilsy commented 9 years ago

I would try cloning https://github.com/CleverStack/node-seed into a folder, then run clever setup -v that should be more helpful - also if clever setup doesn't work i would try doing npm i

pilsy commented 9 years ago

I'm thinking that i fixed these issues with the release of https://github.com/CleverStack/cleverstack-cli/releases/tag/1.2.5 and the latest versions of clever-auth, clever-users, clever-roles and clever-accounts.

Because module dependencies are enabled again using peerDependencies, on node >= 0.8 (including iojs) things install correctly.

clever init my-app clever-orm clever-users - will install clever-orm, clever-auth, clever-accounts, clever-roles and clever-users.

pilsy commented 9 years ago

Please re-open the issue if your issues with cleverstack-cli continue