These are chat archives for quorrajs/quorrajs

26th
May 2016
Niall O'Brien
@niallobrien
May 26 2016 15:39 UTC
Hi all
Niall O'Brien
@niallobrien
May 26 2016 16:09 UTC
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 UTC

Hi @niallobrien

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

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

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