Error adding Prismic builder to Next.js on WSL 2

Hy guys, good morning !

I've found a problem adding the Prismic builder to my Next.js project.


error: Couldn't find an alternative telinit implementation to spawn.

The reason seems to be that WSL 2 doesn't support systemd and systemctl.

Can you help me?

Hello @rodrigoam

Welcome to the Prismic community and thanks for reaching out to us.

What version of node do you have in your system? You need at least Node.js 12.0 or later. Check this by running node -v in your terminal.

Could you please check it and let me know?


Hi @Priyanka

I managed to solve the problem by updating the npm version:

npm install -g npm@latest

Thanks !

I am glad that it works. Would you please tell me what version of npm you have?