These are chat archives for quorrajs/quorrajs

26th
May 2016
Niall O'Brien
@niallobrien
May 26 2016 15:39
Hi all
Niall O'Brien
@niallobrien
May 26 2016 16:09
I get the below error when trying to create a new application:
Command failed: quorra generate-key
module.js:440
    throw err;
    ^

Error: Cannot find module 'positron'
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/private/var/application/my_projects/quorra/sligg/bootstrap/start.js:2:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
Harish
@harishanchu
May 26 2016 19:58

Hi @niallobrien

Could you please provide the command you have used and your environment details?

Niall O'Brien
@niallobrien
May 26 2016 20:21
OSX, node v6, npm v3, quorra new blog
@harishanchu ^
Harish
@harishanchu
May 26 2016 20:23

Thank you @niallobrien

I will fix this issue soon and get back to you with the cause.

Niall O'Brien
@niallobrien
May 26 2016 20:24
Thank you
Harish
@harishanchu
May 26 2016 20:24
I guess it is platform specific
Niall O'Brien
@niallobrien
May 26 2016 20:24
Excited to try Quorra
Harish
@harishanchu
May 26 2016 20:25
Didn't test much in osx and windows
Thanks for your interest :)
Niall O'Brien
@niallobrien
May 26 2016 20:26
Have you tested on node v6?
Harish
@harishanchu
May 26 2016 20:26
nope
tested in v5 in linux
Niall O'Brien
@niallobrien
May 26 2016 20:26
Should work so...
Harish
@harishanchu
May 26 2016 20:26
tested in windows with older versions of node
yeah
Niall O'Brien
@niallobrien
May 26 2016 20:27
I can install the CLI tool, but it fails at the generate-key part. Weird
Harish
@harishanchu
May 26 2016 20:27
yeah
during generate-key operation it tries to loads the Quorra core module Positron
and it fails
Positron module is installed as quorra dependency before key generation
Niall O'Brien
@niallobrien
May 26 2016 20:29
Yeah, I tried npm i positron —save and that failed
Harish
@harishanchu
May 26 2016 20:33
its a v6 issue
I'm getting the same in my linux machine
Niall O'Brien
@niallobrien
May 26 2016 21:07
Strange
Any idea why?
Harish
@harishanchu
May 26 2016 21:29
Yeah, got it
Niall O'Brien
@niallobrien
May 26 2016 21:29
What was it?
Harish
@harishanchu
May 26 2016 21:30
in old versions npm install depedencies and its depedenceis inside folder named nod_modules
but in new node versions all dependecies of dependencies are installed in root node_modules folder itself
Niall O'Brien
@niallobrien
May 26 2016 21:33
npm v3’s flat dependency structure?
Harish
@harishanchu
May 26 2016 21:33
yes
Niall O'Brien
@niallobrien
May 26 2016 21:33
:)
A few other deps are out of date.
Harish
@harishanchu
May 26 2016 21:34
Fixed the issue
wil lpublish now
Yeah, I know
Niall O'Brien
@niallobrien
May 26 2016 21:34
Thank you, npm i quorra -g to update?
Harish
@harishanchu
May 26 2016 21:35
Right now all services are loaded sequentially in a file inside positron
just want to implement a service loader strategy for quorra
I think I will update outdated packages after that
Niall O'Brien
@niallobrien
May 26 2016 21:36
Sounds great. Do you use this in production?
Harish
@harishanchu
May 26 2016 21:36
No, not yet
its still in beta
Niall O'Brien
@niallobrien
May 26 2016 21:37
Is uploading a file the same as Express?
Harish
@harishanchu
May 26 2016 21:38
didn't intgrate any fileupload packge with quorra yet
Niall O'Brien
@niallobrien
May 26 2016 21:38
Ok
Harish
@harishanchu
May 26 2016 21:38
any nodejs module that works in express should also work for quorra
Niall O'Brien
@niallobrien
May 26 2016 21:38
Yes, I was thinking of using Multer
Harish
@harishanchu
May 26 2016 21:39
Yeah, I remember
Will add all such features after once current code base is stable
Niall O'Brien
@niallobrien
May 26 2016 21:39
Sounds great
Have you seen Adonis.js?
Harish
@harishanchu
May 26 2016 21:41
Yeah, I saw that recently
Niall O'Brien
@niallobrien
May 26 2016 21:42
It’s also been developed by an Indian developer
Harish
@harishanchu
May 26 2016 21:42
Adonis is also inspired by laravel
Niall O'Brien
@niallobrien
May 26 2016 21:42
Very true
There’s still a lot of work to do on it though
Harish
@harishanchu
May 26 2016 21:43
Yeah
I have published the latest quorra-cli.. now works in my linux machine
Niall O'Brien
@niallobrien
May 26 2016 21:44
I’ll test
Harish
@harishanchu
May 26 2016 21:45
:+1:
Niall O'Brien
@niallobrien
May 26 2016 21:51
what’s the CLI version? quorra -v
Harish
@harishanchu
May 26 2016 21:51
1.0.0-beta.1
npm install -g quorra-cli will install the latest version
Niall O'Brien
@niallobrien
May 26 2016 21:52
Yup, doing it now
I then did npm i inside the app, it failed and all files have disappeared
Harish
@harishanchu
May 26 2016 21:58
You don't have to do npm install inside quorra app
first install latest cli tool with npm install -g quorra-cli
Niall O'Brien
@niallobrien
May 26 2016 21:58
Ok, but it shouldn’t delete everything
Harish
@harishanchu
May 26 2016 21:59
then quorra new <pjt name>
Niall O'Brien
@niallobrien
May 26 2016 22:00
Yes, now to test, run npm i inside <pjt name> and it will delete everything. That’s bad.
Harish
@harishanchu
May 26 2016 22:00
did you try npm i inside quorra project folder after creating new project with quorra new command?
Niall O'Brien
@niallobrien
May 26 2016 22:00
yes
I know I don’t have to.
Harish
@harishanchu
May 26 2016 22:00
Let me check
Niall O'Brien
@niallobrien
May 26 2016 22:01
Ok
Harish
@harishanchu
May 26 2016 22:02
even if you do that on a good installation of a new quorra app it should only update dependencies as per package.json inside
it should not delete anything
Niall O'Brien
@niallobrien
May 26 2016 22:02
Well it does...
Harish
@harishanchu
May 26 2016 22:03
yeah, I see
I get it
its all because of that npmv3 change
Niall O'Brien
@niallobrien
May 26 2016 22:04
:(
Harish
@harishanchu
May 26 2016 22:05
I did a workaround to fix previous issue.. but it created a new one :smile:
Niall O'Brien
@niallobrien
May 26 2016 22:12
Lol
Harish
@harishanchu
May 26 2016 22:16
I have to look into v3’s flat dependency structure and do a rework on this issue.
Niall O'Brien
@niallobrien
May 26 2016 22:16
No problem
Harish
@harishanchu
May 26 2016 22:16
I will do it tomorrow.. Its already 4 AM here :)
Niall O'Brien
@niallobrien
May 26 2016 22:16
Lol, sorry for keeping you awake.
Harish
@harishanchu
May 26 2016 22:16
Sorry for the trouble n thanks for your support
really appreciate it
Niall O'Brien
@niallobrien
May 26 2016 22:17
No problem! :)