Skip to main content

Node Modules on Freshdesk Server


  • Contributor
  • 6 replies

Below is the message I get from the server.js on making an API request using the request node module. 


Error while executing App server script! - Cannot find module './developer/node_modules/request'


Did this topic help you find an answer to your question?
This topic has been closed for comments

10 replies

Hi Uday,


Can you please use the below command and send me the screenshot.


NODE_DEBUG=fdk fdk <Command>


Also , please do send the manifest.json and server.js file. 


Thanks

Vikram



  • Author
  • Contributor
  • 6 replies
  • February 13, 2018

PFA


adminumsconsultants_30932.png

  • Author
  • Contributor
  • 6 replies
  • February 13, 2018

PFA


error3_30931.png

Hi Uday,


Please add the dependencies in the manifest.json file. Refer the following link for more details: 'https://developers.freshdesk.com/v2/docs/app-manifest/'.


Please try and do let me know if you still face issues regarding this.


Thanks

Vikram



  • Author
  • Contributor
  • 6 replies
  • February 14, 2018

Hi Vikram,






I made changes in manifest.json file as per your suggestion. But the issue now raised in I am unable to validate the app to be uploaded.  


PFA : manifest.json & Screenshot


validationerror_30951.png

Hi Uday,


Can you please confirm whether have you used request in your server.js file.


Thanks

Vikram



  • Author
  • Contributor
  • 6 replies
  • February 18, 2018

Hi Vikram,




Yes I have used request.js in the server.js




PFA: server.js




  • Author
  • Contributor
  • 6 replies
  • February 18, 2018

Hi Vivek,




I have used request.js in server.js file. 
PFA: server.js



Windows bug that is currently being fixed, will update once the fix is out.


We have released CLI v4.2.1 to address this issue - https://developers.freshdesk.com/v2/docs/quick-start/


Please note that Windows users should install all required tools and configurations after installing nodejs using the following command.


npm install --global --production windows-build-tools