运行电子时出现以下错误
我尝试删除node_modules并重新安装。
我尝试过library(shiny)
library(xlsx)
library(dplyr)
#Save country names ----
country <- c("USA", "China", "India")
ui <- fluidPage(
#Create select input button with countries as options ----
selectInput(inputId = "coun",
label = "Country",
choices = c("", country),
selected = NULL,
multiple = FALSE),
#Create action button ----
actionButton(inputId = "go",
label = "View"),
#Final text output ----
textOutput("text")
)
server <- function(input, output) {
#Extract respective column in R code ----
data <- eventReactive(input$go, {
x <- read.xlsx("test.xlsx", 1)
z <- x %>% select(input$coun)
return(z)
})
#Output text ----
output$text <- renderText({data()})
}
shinyApp(ui = ui, server = server)
我已经尽力想了一切。
我可以使用NODE_MODULE_VERSION 72进入版本。
但是我可以运行它。
node_modules/.bin/electron-rebuild -f -w better-sqlite3