diff --git a/Formula/m/mongosh.rb b/Formula/m/mongosh.rb index 0985d72b374e3..f2983e43ebd04 100644 --- a/Formula/m/mongosh.rb +++ b/Formula/m/mongosh.rb @@ -1,5 +1,3 @@ -require "language/node" - class Mongosh < Formula desc "MongoDB Shell to connect, configure, query, and work with your MongoDB database" homepage "https://github.com/mongodb-js/mongosh" @@ -20,8 +18,8 @@ class Mongosh < Formula depends_on "node" def install - system "npm", "install", *Language::Node.std_npm_install_args(libexec) - (bin/"mongosh").write_env_script libexec/"bin/mongosh", PATH: "#{Formula["node"].opt_bin}:$PATH" + system "npm", "install", *std_npm_args + bin.install_symlink Dir["#{libexec}/bin/*"] end test do