NodeJS Rest API with R-Script You may have to install R package based on the ex-async.R. You can easily do it with RStudio or just use command line npm install node index.js Blog - https://medium.com/@madurajithdeshan/how-to-run-r-scripts-with-nodejs-rest-api-2e72627084f6?sk=f28b431dc3394339ed04aedac26d76b3