Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: This version of pnpm requires at least Node.js v16.4 (The current version of Node.js is v16.13.2) #6297

Closed
dr2009 opened this issue Mar 28, 2023 · 6 comments · Fixed by #6301
Assignees

Comments

@dr2009
Copy link

dr2009 commented Mar 28, 2023

pnpm version:

8.0.0

Code to reproduce the issue:

Expected behavior:

Actual behavior:

pnpm -v     
ERROR: This version of pnpm requires at least Node.js v16.4
The current version of Node.js is v16.13.2
Visit https://r.pnpm.io/comp to see the list of past pnpm versions with respective Node.js version support.

Additional information:

  • node v16.13.2
  • macOS
@zkochan
Copy link
Member

zkochan commented Mar 28, 2023

It is expected. pnpm v8 has dropped Node.js 14 support.

You can either keep using pnpm v7 or install @pnpm/exe (npm i -g @pnpm/exe), which is bundled with node.js 18.

@zkochan zkochan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
@dr2009
Copy link
Author

dr2009 commented Mar 28, 2023

It is expected. pnpm v8 has dropped Node.js 14 support.

You can either keep using pnpm v7 or install @pnpm/exe (npm i -g @pnpm/exe), which is bundled with node.js 18.

this error occur Node.js v16.13.2. not Node 14

@zkochan
Copy link
Member

zkochan commented Mar 28, 2023

OK. I'll check

@zkochan zkochan reopened this Mar 28, 2023
@zkochan
Copy link
Member

zkochan commented Mar 28, 2023

It is an error in the error message. pnpm v8 supports only node.js v16.14 or newer

@dr2009
Copy link
Author

dr2009 commented Mar 28, 2023

It is an error in the error message. pnpm v8 supports only node.js v16.14 or newer

ok i got it

but why not support 16.13.0 (the first node 16 lts version)

@zkochan
Copy link
Member

zkochan commented Mar 28, 2023

Because of this dependency

pnpm/pnpm-lock.yaml

Lines 13744 to 13747 in 518f5e1

/lru-cache@8.0.4:
resolution: {integrity: sha512-E9FF6+Oc/uFLqZCuZwRKUzgFt5Raih6LfxknOSAVTjNkrCZkBf7DQCwJxZQgd9l4eHjIJDGR+E+1QKD1RhThPw==}
engines: {node: '>=16.14'}
dev: false

emmansun added a commit to emmansun/pkg that referenced this issue Apr 21, 2023
according error message of the actions and pnpm/pnpm#6297
baparham pushed a commit to vercel/pkg that referenced this issue Apr 28, 2023
* Ignore pnpm test for node14

according error message of the actions and pnpm/pnpm#6297

* trigger ci
pcnate pushed a commit to pcnate/pkg that referenced this issue Aug 15, 2023
* Ignore pnpm test for node14

according error message of the actions and pnpm/pnpm#6297

* trigger ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants