Closed theocoria closed 9 years ago
Hi Richard, got the same issue.
Any feedback on this yet Richard?
Same problem. For me it happens immediately after: Running "prompt:cleverOrmConfigPrompt" (prompt) task [?] Database username: Running database migrations...
And note that it puts up the prompt question, but proceeds immediately without pausing for user input. (The truth is, I hadn't set up a database nor database user for this new project yet anyway.)
Is there a way to skip database migration, I want a truly MEAN app so I don't want any DB stuff, but of course I do want auth & roles if that is a part of DB, then do I need to install mysql and create database first? This is my node Week1 and clever hour 0, sorry for asking dumb questions.
Here is what I got:
Couldn't find a seed directory within D:\code\node PS D:\code\node> clever init CleverApp Preparing... Creating installation path D:\code\node\CleverApp... Finding seeds to target for installation... Starting installation...
Installing Backend... Installation path is D:\code\node\CleverApp\backend... Downloading and extracting node-seed... Creating local configuration file config/local.json... Installing NPM modules... Installing bundledDependencies... Installing bundled dependencies within D:\code\node\CleverApp\backend Installing modules: clever-orm clever-auth clever-roles Finding seeds to target... Found CleverStack Backend (node-seed)... Searching for modules... Searching NPM... Searching Bower... Installing clever-orm... Installing clever-auth... Installing clever-roles... Installing NPM modules for clever-orm... Successfully installed clever-orm... Installing NPM modules for clever-auth... Successfully installed clever-auth... Installing NPM modules for clever-roles... Successfully installed clever-roles... Installing bundledDependencies... Installing bundled dependencies within D:\code\node\CleverApp\backend\modules\clever-roles Running grunt tasks for module clever-orm... Running "readme" task Installation instructions:
backend
folder, run NODE_ENV=local grunt db
.
The database tables for your modules should now be installed and seeded with data!Done, without errors. Status @ 86s | Installation Progress: [▒▒▒-------] 32 % ┊ Installing: Backend ┊ Step: Installing clever-roles ... ┊ Step Time: 62s ┊ Running "prompt:cleverOrmConfigPrompt" (prompt) task Warning: Implement me. Unknown stdin file type! Use --force to continue.
Aborted due to warnings. Running database migrations... Possibly unhandled TypeError: Cannot read property 'promise' of undefined at PromiseResolver$reject (C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\node_modules\bluebird\ js\main\promise_resolver.js:117:23) From previous event: at Function.Promise$Defer (C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\node_modules\bluebird\ js\main\promise.js:296:13) at download (C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\lib\packages.js:76:28) at Object.exports.get (C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\lib\packages.js:63:12) at backendProjectDirReady (C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\bin\clever-init:354:14 ) at C:\Users\sgireddy\AppData\Roaming\npm\node_modules\cleverstack-cli\node_modules\mkdirp\index.js:29:20 at Object.oncomplete (fs.js:107:15)
Sorry for the late reply, i have been working on fixing this but there have been quite a number of changes to get this all working correctly.
I am looking to publish a fix for this either today or tomorrow
Any progress? I'm blocked on getting started with Clever because of this.
I have resolved this issue ( i think ) - can you guys please confirm?
Had clever 1.0.7 installed from before this email, so I just walked into an empty directory and did “clever init clever-example”. Got an EACCES error.
Figured, “Hmm, maybe he released a new build.” npm rm –g cleverstack-cli, then did npm install –g cleverstack-cli. Says that it’s version 1.0.7 again. OK.
Tried again. Same error.
OK, let’s do this with sudo. “sudo clever init clever-ex”. This time, got a really interesting error (cut/paste from Terminal window):
content4:Cleverstack ted$ sudo clever init clever-ex
Preparing...
Creating installation path /Users/ted/Projects/Exploration.hg/Cleverstack/clever-ex...@ 2s | Installation Progress: ┊ Installing: Preparing... ┊ Finding seeds to target for installation...
Starting installation...
Installing Backend...
Installation path is /Users/ted/Projects/Exploration.hg/Cleverstack/clever-ex/backend...
Downloading and extracting node-seed...
Creating local configuration file config/local.json...
Installing NPM modules...on Progress: [▒---------] 7 % ┊ Installing: Back
Installing bundledDependencies...
Backend installation has completed successfully!--] 21 % ┊ Installing: Backend ┊ Step: Installing NPM modules... ┊ Step Time: 11s ┊
Installing Frontend...
Installation path is /Users/ted/Projects/Exploration.hg/Cleverstack/clever-ex/frontend...
Installing NPM modules...
Error: Command failed: bower ESUDO Cannot be run with sudo
Status @ 66s | Installation Progress: [▒▒▒▒▒▒----] 64 % ┊ Installing: FrAdditional error details:ling bower components... ┊ Step Time: 1s ┊ Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option
Status @ 66s | Installation Progress: [▒▒▒▒▒▒----] 64 % ┊ Installing: Frontend ┊ Step: Installing bower components... ┊ Step Time: 1s ┊
content4:Cleverstack ted$
Hope that helps…..
Ted Neward Author, Speaker, Mentor http://www.newardassociates.com t: @tedneward | m: (425) 647-4526
From: Richard notifications@github.com Reply-To: CleverStack/cleverstack-cli <reply@reply.githu b.com> Date: Thursday, September 18, 2014 at 12:30 PM To: CleverStack/cleverstack-cli cleverstack-cli@noreply.github.com Cc: Ted Neward ted@tedneward.com Subject: Re: [cleverstack-cli] 'clever init' not working (#41)
I have resolved this issue ( i think ) - can you guys please confirm?
— Reply to this email directly or view it on GitHub https://github.com/CleverStack/cleverstack-cli/issues/41#issuecomment-56089 883 .
thanks @tedneward - the reason there is no new cleverstack-cli release is because the problems were in the node-seed and angular-seed repo's...
Odd that it is not working, i ran clever init frontend-test frontend which gave me the frontend inside of the frontend-test folder, then clever init backend-test backend which also worked
And when i run the command for both (clever init test-app) it works as well
Can you run your commands with -v (for verbose) please
Sure. Before I doŠ
() Do you want me to remove/install cleverstack-cli again? () Should I run it as sudo or as just a normal user? (*) Are there any other aspects of my setup (MacBookPro, 10.9, Node 0.10.latest, etc) that would help?
FWIW, it seems that I can do a ³clever init xxx backend² without a problem. Haven¹t tried frontend since that was where bower seemed to get hung up earlier. But I¹ll run whatever sequence of commands would help you track this down. (Could very well be a problem on my end, too, so let¹s not discount that, either.)
Ted Neward Author, Speaker, Mentor http://www.newardassociates.com t: @tedneward | m: (425) 647-4526
From: Richard notifications@github.com Reply-To: CleverStack/cleverstack-cli <reply@reply.githu b.com> Date: Thursday, September 18, 2014 at 7:58 PM To: CleverStack/cleverstack-cli cleverstack-cli@noreply.github.com Cc: Ted Neward ted@tedneward.com Subject: Re: [cleverstack-cli] 'clever init' not working (#41)
thanks @tedneward https://github.com/tedneward - the reason there is no new cleverstack-cli release is because the problems were in the node-seed and angular-seed repo's...
Odd that it is not working, i ran clever init frontend-test frontend which gave me the frontend inside of the frontend-test folder, then clever init backend-test backend which also worked
And when i run the command for both (clever init test-app) it works as well
Can you run your commands with -v (for verbose) please
‹ Reply to this email directly or view it on GitHub https://github.com/CleverStack/cleverstack-cli/issues/41#issuecomment-56129 976 .
@tedneward
On the EACCES error that you where getting, try running $ sudo npm cache clear before you run $ clever init some-project. The reason why I suggest you try this is that when you do glabal installations of npm packages (like cleverstack-cli) you do it using sudo, so as a result the cache also gets infected with sudo permissions. So clearing the cache works a charm :)
@pilsy clever init runs through nicely now. Just a few notes:
thank you @theocoria !! :+1:
I will review, ticket and fix those issues over the coming weekend :)
@pilsy Sweet :)
Nice blog post. Only thing on that list I don¹t recognize is Tree‹what¹s that?
Meanwhile, clearing cache nowŠ.
From: Martin Gouws notifications@github.com Reply-To: CleverStack/cleverstack-cli <reply@reply.githu b.com> Date: Friday, September 19, 2014 at 1:59 AM To: CleverStack/cleverstack-cli cleverstack-cli@noreply.github.com Cc: Ted Neward ted@tedneward.com Subject: Re: [cleverstack-cli] 'clever init' not working (#41)
@tedneward https://github.com/tedneward
@pilsy https://github.com/pilsy clever init runs through nicely now. Just a few notes:
Cleared the cache, re-installed clever stack, got the same problem:
content4:Cleverstack ted$ clever init example
Preparing...
Creating installation path /Users/ted/Projects/Exploration.hg/Cleverstack/example...s @ 2s | Installation Progress: ┊ Installing: Preparing... ┊ Finding seeds to target for installation...
Starting installation...
Installing Backend...
Installation path is /Users/ted/Projects/Exploration.hg/Cleverstack/example/backend...
Downloading and extracting node-seed...
Creating local configuration file config/local.json...
Installing NPM modules...on Progress: [▒---------] 7 % ┊ Installing: Back
Installing bundledDependencies...
Backend installation has completed successfully!--] 21 % ┊ Installing: Backend ┊ Step: Installing NPM modules... ┊ Step Time: 44s ┊
Installing Frontend...
Installation path is /Users/ted/Projects/Exploration.hg/Cleverstack/example/frontend...
Downloading and extracting angular-seed...
Installing NPM modules...
Installing bundled modules...Progress: [▒▒▒▒------] 43 % ┊ Installing: F Installing bower components...rogress: [▒▒▒▒▒-----] 50 % ┊ Installing: Fr
Building frontend...
Error: Command failed: stallation Progress: [▒▒▒▒▒▒----] 64 % ┊ Installing Status @ 2.200m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 8s ┊
If y’all want to tell me where this is going wrong, I’m all ears….
Note that after this, I went into the frontend directory, did a “bower update”, and got no errors. Then, a “clever server” seems to launch fine, though when I browse localhost:9000, I think I’m getting the same problem Martin was alluding to earlier. I’m going to try installing clever-messenger and clever-modal and then do another run and see if that solves the problem.
From: Martin Gouws notifications@github.com Reply-To: CleverStack/cleverstack-cli <reply@reply.githu b.com> Date: Friday, September 19, 2014 at 1:59 AM To: CleverStack/cleverstack-cli cleverstack-cli@noreply.github.com Cc: Ted Neward ted@tedneward.com Subject: Re: [cleverstack-cli] 'clever init' not working (#41)
@tedneward https://github.com/tedneward
@pilsy https://github.com/pilsy clever init runs through nicely now. Just a few notes:
Just tried running clever install clever-modal:
example ted$ clever install clever-modal
Attempting to install clever-modal...
Finding seeds to target...
Found CleverStack Backend (node-seed) in
/Users/ted/Projects/Exploration.hg/Cleverstack/example/backend...
Found CleverStack Frontend (angular-seed) in
/Users/ted/Projects/Exploration.hg/Cleverstack/example/frontend...
Searching for modules...
Searching NPM...
Searching Bower...
Installing clever-modal...
Checking bower.json file for instructions within clever-modal
Finished renaming clever-modal to cs_modal
Installing bower components for cs_messenger...
Installing bower components for cs_modal...
Error: Command failed:
TypeError: Cannot read property 'optOut' of null
at Object.Configstore.get
(/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configs tore/configstore.js:85:17)
at Insight.Object.defineProperty.get
(/usr/local/lib/node_modules/bower/node_modules/insight/lib/index.js:34:22)
at Object.setup
(/usr/local/lib/node_modules/bower/lib/util/analytics.js:34:40)
at Object.<anonymous>
(/usr/local/lib/node_modules/bower/bin/bower:72:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
Is this indicative of what might be borked on my system?
From: Martin Gouws notifications@github.com Reply-To: CleverStack/cleverstack-cli <reply@reply.githu b.com> Date: Friday, September 19, 2014 at 1:59 AM To: CleverStack/cleverstack-cli cleverstack-cli@noreply.github.com Cc: Ted Neward ted@tedneward.com Subject: Re: [cleverstack-cli] 'clever init' not working (#41)
@tedneward https://github.com/tedneward
@pilsy https://github.com/pilsy clever init runs through nicely now. Just a few notes:
@tedneward Sorry for not replying earlier, was away from my keyboard for close to a week :)
I've never seen that error before, so I think it might be the thing thats broken. Have you tried reinstalling bower, coz I see that's the module giving the issue?
I was installing clever today in an ubuntu 14.04 box / node v0.10.32 / mongo 2.6.5 / npm 1.4.28 and it stopped just after Building frontend... Error: Command failed: Status @ 2.267m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 7s ┊ without other notices or anything...
When I entered the -v option, the following error emerged:
Running "requirejs:compile" (requirejs) task
Error: ENOENT, no such file or directory '/home/xxxxxx/crmt4/frontend/dist/modules/cs_messenger/main.js'
In module tree:m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 7s ┊
main
{ [Error: Error: ENOENT, no such file or directory '/home/xxxxxx/crmt4/frontend/dist/modules/cs_messenger/main.js' In module tree: main
at Object.fs.openSync (fs.js:438:18)
] originalError: { [Error: ENOENT, no such file or directory '/home/xxxxxx/crmt4/frontend/dist/modules/cs_messenger/main.js'] errno: 34, code: 'ENOENT', path: '/home/xxxxxx/crmt4/frontend/dist/modules/cs_messenger/main.js', syscall: 'open', fileName: '/home/xxxxxx/crmt4/frontend/dist/modules/cs_messenger/main.js', moduleTree: [ 'main' ] } }
Execution Time (2014-10-10 21:51:06 UTC) loading tasks 1.7s ▇▇▇▇▇▇▇▇▇▇ 22% jshint:all 391ms ▇▇▇ 5% imagemin:dist 3s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 41% less:css 98ms ▇ 1% copy:dist 1.4s ▇▇▇▇▇▇▇▇▇ 19% ngAnnotate:dist 85ms ▇ 1% requirejs:compile 537ms ▇▇▇▇ 7% Total 7.4s Error: Command failed: Status @ 2.150m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 7s ┊
Any clues?
same error @repunck with new version
In module tree:3m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 9s ┊
main
{ [Error: Error: ENOENT, no such file or directory '/home/murat/public_html/bakkalci/frontend/dist/modules/cs_messenger/main.js' In module tree: main
at Object.fs.openSync (fs.js:438:18)
] originalError: { [Error: ENOENT, no such file or directory '/home/murat/public_html/bakkalci/frontend/dist/modules/cs_messenger/main.js'] errno: 34, code: 'ENOENT', path: '/home/murat/public_html/bakkalci/frontend/dist/modules/cs_messenger/main.js', syscall: 'open', fileName: '/home/murat/public_html/bakkalci/frontend/dist/modules/cs_messenger/main.js', moduleTree: [ 'main' ] } }
Execution Time (2014-10-18 00:01:18 UTC) loading tasks 1.2s ▇▇▇▇▇▇ 13% jshint:all 727ms ▇▇▇▇ 8% imagemin:dist 4.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 44% less:css 143ms ▇ 1% cssmin:dist 148ms ▇ 2% copy:dist 2.1s ▇▇▇▇▇▇▇▇▇▇ 22% ngAnnotate:dist 130ms ▇ 1% requirejs:compile 817ms ▇▇▇▇ 9% Total 9.6s Error: Command failed: Status @ 10.133m | Installation Progress: [▒▒▒▒▒▒▒---] 71 % ┊ Installing: Frontend ┊ Step: Building... ┊ Step Time: 9s ┊
any idea?
Hi Richard,
I tried a fresh install of cleverstack yesterday to check out the new releases of the node-seed and angular seed, but it seems that 'clever init' falls over the moment that the grunt tasks for clever orm are executed. See the error message below:
Possibly unhandled TypeError: Cannot read property 'promise' of undefined at PromiseResolver$reject (/usr/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise_resolver.js:117:23) From previous event: at Function.Promise$Defer (/usr/lib/node_modules/cleverstack-cli/node_modules/bluebird/js/main/promise.js:296:13) at download (/usr/lib/node_modules/cleverstack-cli/lib/packages.js:76:28) at Object.exports.get (/usr/lib/node_modules/cleverstack-cli/lib/packages.js:63:12) at backendProjectDirReady (/usr/lib/node_modules/cleverstack-cli/bin/clever-init:354:14) at /usr/lib/node_modules/cleverstack-cli/node_modules/mkdirp/index.js:29:20 at Object.oncomplete (fs.js:107:15)
Hope this is an easy fix.