Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem try'ng to launch the server #55

Open
antimoroma opened this issue Oct 29, 2018 · 1 comment
Open

Problem try'ng to launch the server #55

antimoroma opened this issue Oct 29, 2018 · 1 comment

Comments

@antimoroma
Copy link

I'm using node v8.12.0

If i understand correctly the documentation to execute the server with this code

const alexia = require('alexia');
const app = alexia.createApp();
app.intent('HelloIntent', 'Hello', () => {
    return 'Hello from Alexia app';
});
app.createServer().start();

we need only
npm install alexia --save

But if I try to launch the app I receive the error:
Cannot find module 'hapi'

If i install the module (apparently it's not needed from doc) i get
TypeError: server.connection is not a function

May be i'm dooing something wrong?

@JanDzvonik
Copy link
Contributor

Can you try installing older version of hapi?

With command:
npm install hapi@16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants