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.

npx@slicemachine/init

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?

1 Like

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?

Thanks,
Priyanka

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?

work to me, thanks