NodePackageManager
class NodePackageManager (View source)
Methods
Create a new NodePackageManager manager instance.
Get the command to execute a package using the detected package manager.
Get the command to run a script using the detected package manager.
Get the Node package manager in use.
Detect the current package manager.
Details
__construct(NodePackageManager|null $packageManager = null)
Create a new NodePackageManager manager instance.
string
getExecCommand(string $command)
Get the command to execute a package using the detected package manager.
string
getRunCommand(string $command)
Get the command to run a script using the detected package manager.
NodePackageManager
packageManager()
Get the Node package manager in use.
protected NodePackageManager
detect()
Detect the current package manager.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.