vtils

Home > types > PackageJson > PackageJsonStandard > preferGlobal

PackageJson.PackageJsonStandard.preferGlobal property

Warning: This API is now obsolete.

If set to true, a warning will be shown if package is installed locally. Useful if the package is primarily a command-line application that should be installed globally.

Signature:

preferGlobal?: boolean;