gp_build, gp_create and others rely on npm/node being present on the system and might be used in future so refactoring a helper function is good.

gp_npm_exists()

Value

TRUE/FALSE

Examples

{ gp_npm_exists() }
#> [1] TRUE