Skip to content

Commit

Permalink
better js package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Stepniak authored and nbbn committed Jan 9, 2024
1 parent c4eb18a commit 8814582
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/node.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ js_package_manager <- function(...) {
init_js_package_manager <- function() {
command <- read_config()$js_package_manager
if (!fs::dir_exists(node_path())) {
message("Initializing Javascript packages…")
add_node()
}
if (!fs::dir_exists(node_path("node_modules"))) {
js_package_manager_raw(command, "install", "--no-audit", "--no-fund")
message("Installing dependencies by ", command, "")
js_package_manager_raw("install", "--no-audit", "--no-fund")
}
}

0 comments on commit 8814582

Please sign in to comment.