drizzle-team / drizzle-team/drizzle-orm
[BUG]: TypeError: os.availableParallelism is not a function
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [X] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
0.29.1
### What version of `drizzle-kit` are you using?
0.29.1
### Other packages
_No response_
### Describe the Bug
I wanted to contribute to the project so I followed the steps in `CONTRIBUTING.md`.
According to the docs, I'm supposed to use Node `18.13.0`.
https://github.com/drizzle-team/drizzle-orm/blob/main/CONTRIBUTING.md#-installing-node
```
nvm install 18.13.0
nvm use 18.13.0
```
However, in the [pnpm build step](https://github.com/drizzle-team/drizzle-orm/blob/main/CONTRIBUTING.md#-building-the-project), I'm getting the following error:
```
TypeError: os.availableParallelism is not a function
```
According to the [Node.js docs](https://nodejs.org/api/os.html#osavailableparallelism), the `availableParallelism` function had been added in version `18.14.0`, so it's not available in `18.13.0` yet.
### Fix:
Use Node.js `18.14.0` instead of `18.13.0`.
`pnpm build` works without any issue on `18.14.0`.
### Change needed in `CONTRIBUTING.md`:
Replace this:
```
nvm install 18.13.0
nvm use 18.13.0
```
With this:
```
nvm install 18.14.0
nvm use 18.14.0
```
Contributor guide
Assessment
This issue has not been assessed yet.