keep a consistent development environment between different developers.
will check:
- nodejs version: base on
.nvmrc
- package manager type and it's version: base on
packageManager
field of package.json
recommend using fnm to manage nodejs version and corepack to manage the package manager.
For Chinese users:前端如何统一开发环境
Add following to package.json scripts:
{
"scripts": {
"preinstall": "npx check-fe-env"
}
}
- only-allow source of inspiration