Error: Cannot find module 'apiai'

Hi,

Using node 8.11.1, I tried to run the follwing code and got an initialization error.

let API_AI = require(“apiai”);
let app = API_AI(API_AI_KEY);

I tried https://npm.runkit.com/apiai and it works.

Any help will be welcome.

1 Like