Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
check-package-manager
Advanced tools
Readme
Check that the correct package manager is being used with your project.
To configure the correct package manager, you can use the packageManager
property in your package.json
file or you can specify it in the cli arguments.
:information_source: This package requires Node >= 18
. If you use an older Node version, the cli will exit and print a warning.
npm i check-package-manager -D
:information_source: You can use npx check-package-manager [options]
in your preinstall
script if you don't want to add it as a dependency.
check-package-manager [options] [packageManager]
:information_source: Depending on the package manager being used, the preinstall
script may get invoked after dependencies are installed.
packageManager
(optional) - <package manager name>[@<version>]
--info
- Print info messages
--debug
- Print debug messages
When using corepack:
{
"name": "YOUR-PACKAGE-NAME",
"version": "1.0.0",
"packageManager": "pnpm@7.19.0",
"scripts": {
"preinstall": "npx check-package-manager"
}
}
Specify the package manager name and version yourself:
{
"name": "YOUR-PACKAGE-NAME",
"version": "1.0.0",
"scripts": {
"preinstall": "npx check-package-manager npm@9.2.0"
}
}
Specify only the package manager name:
{
"name": "YOUR-PACKAGE-NAME",
"version": "1.0.0",
"scripts": {
"preinstall": "npx check-package-manager yarn"
}
}
fnm use
corepack enable
pnpm install
pnpm build
FAQs
Check that you're using the correct package manager
The npm package check-package-manager receives a total of 421 weekly downloads. As such, check-package-manager popularity was classified as not popular.
We found that check-package-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.