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

Keystone Prisma CLI does not work with Node v22.1.0 #9146

Open
yorkeJohn opened this issue May 14, 2024 · 4 comments
Open

Keystone Prisma CLI does not work with Node v22.1.0 #9146

yorkeJohn opened this issue May 14, 2024 · 4 comments
Labels
🐛 bug Unresolved bug dependencies Related to our dependencies needs more info

Comments

@yorkeJohn
Copy link

yorkeJohn commented May 14, 2024

Keystone Prisma CLI commands do not work with the latest Node version. Downgrading to Node 20 LTS fixed this issue.

The following error occurs when running keystone build (in the postinstall):

> npm install

> cms@1.0.3 postinstall
> keystone build --no-ui --frozen

(node:18708) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)        
✨ GraphQL and Prisma schemas are up to date
AggregateError: 
    GeneratorError: Generator "C://<redacted>//cms//node_modules//@prisma//client//generator-build//index.js" failed:
    Assertion failed: process_title, file c:/ws/deps/uv/src/win/util.c, line 418  
        at ChildProcess.<anonymous> (C:/<redacted>/cms/node_modules/@prisma/generator-helper/dist/chunk-XP4JGOVU.js:620:25)       
        at ChildProcess.emit (node:events:520:28)
        at ChildProcess.emit (node:domain:488:12)
        at ChildProcess._handle.onexit (node:internal/child_process:294:12)       
    at next (C:\<redacted>\cms\node_modules\@prisma\internals\dist\chunk-WTCY7DFZ.js:3159:24)
    at C:\<redacted>\cms\node_modules\@prisma\internals\dist\chunk-WTCY7DFZ.js:3180:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 

And the following when running prisma commands such as keystone prisma migrate dev and keystone prisma generate:

> npm run migrate-dev                                                                                                                                                                   

> cms@1.0.3 migrate-dev
> keystone prisma migrate dev

(node:8912) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✨ GraphQL and Prisma schemas are up to date
Assertion failed: process_title, file c:\ws\deps\uv\src\win\util.c, line 418

Node version:

> node -v                                                                                                                                                                               
v22.1.0
@yorkeJohn yorkeJohn changed the title Prisma AggregateError when running keystone prisma migrate dev, keystone build, etc. Keystone Prisma CLI does not work with Node v22.1.0 May 14, 2024
@dcousens dcousens added dependencies Related to our dependencies 🐛 bug Unresolved bug needs more info labels May 16, 2024
@dcousens
Copy link
Member

@yorkeJohn can you provide any additional details about your environment?

@yorkeJohn
Copy link
Author

Windows 11, NPM 10.7.0

@mandymozart
Copy link

also running all keystone related stuff on 18.19.1 actually.

@krzysztof-fijolek
Copy link

krzysztof-fijolek commented Nov 2, 2024

[Edited] I am also facing the same issue on windows 10. The workaround I used to downgrade Node to v18. It also works with latest v20.18.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unresolved bug dependencies Related to our dependencies needs more info
Projects
None yet
Development

No branches or pull requests

4 participants