我有一个Rails API application
。我需要每天从Rails应用程序中运行一个Puppeteer script
。我尝试了本教程https://www.forsbergplustwo.com/blogs/news/pdf-generation-with-chrome-headless-in-ruby-using-puppeteer-on-heroku。
但是,如果我运行npm install
,则不会在我的应用程序中创建节点模块文件夹。如果我运行system 'node task.js'
,它将返回nil
。如何执行此任务?关于如何进行的任何输入都会有所帮助
运行npm install
时终端返回什么?