从Rails应用程序运行人偶任务

问题描述 投票:0回答:1

我有一个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。如何执行此任务?关于如何进行的任何输入都会有所帮助

ruby-on-rails npm npm-install node-modules puppeteer
1个回答
0
投票

运行npm install时终端返回什么?

© www.soinside.com 2019 - 2024. All rights reserved.