Install Node.js

install_nodejs(node_url = "https://nodejs.org/dist",
  nodejs_path = file.path(system.file(package = "electricShine"),
  "nodejs"), force_install = FALSE, nodejs_version = "v10.16.0",
  permission_to_install = FALSE)

Arguments

node_url

path to node.js.org

nodejs_path

parent folder of node.exe (~nodejs_path/node.exe)

force_install

try and install even if nodejs exists (TRUE/FALSE)

nodejs_version

version of node.js (eg "v10.16.0")

permission_to_install

whether to skip .prompt_install_nodejs()

Value

installed or checked nodejs_path