News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Trouble creating webook in node
Tags: webhooks
Jul 26, 2021 at 9:08am   •   2 replies  •  0 likes
Edmund Adjei

I followed the steps in https://developers.ringcentral.com/guide/notifications/webhooks/quick-start to create webhook-notification.js but when I run the resulting file, it fails with MODULE_FOUND


~/ringcentral $ node ./webhook-notification.js 
internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module '@ringcentral/sdk'
Require stack:
- /home/x/ringcentral/webhook-notification.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/x/ringcentral/webhook-notification.js:2:21)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/x/ringcentral/webhook-notification.js' ]
}


I'm new to node.js so if there is a trivial error in the example code, I might have missed it.



2 Answers
answered on Jul 26, 2021 at 1:58pm  

Thanks Anirban, I switched to the Python example making a little more progress


 0
answered on Jul 26, 2021 at 11:52am  

I think it is not RingCentral issue.. this issue is related to node.js.. may be installation issue.

ref: https://discuss.codecademy.com/t/module-not-found/601265


 1



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us