module Isomorfeus module Installer class Npm def self.execute Bundler.with_original_env do begin if File.exist?('package.json') puts 'Executing npm install:' system("npm install") end rescue puts "failed, is npm installed?" end begin puts 'Executing npm install esbuild:' system("npm install esbuild") rescue puts "failed, using the supplied, but slower esuild-wasm instead." end end end end end end