Detected framework universal (no framework) and package manager yarn
Began core dependencies installation with yarn ... (running in background)
Logged in as email@example.com
Selected repository spacetravelling-desafio2 (flag repository used)
| Finishing core dependencies installation with yarn ...
→ info Visit yarn add | Yarn for documentation about this command.
Command failed with exit code 1: yarn add -D slice-machine-ui@latest @slicemachine/adapter-universal@latest --color
warning ..\package.json: No license field
warning slice-machine-ui > @prismicio/editor-fields > @firstname.lastname@example.org: Package renamed to @floating-ui/react
error An unexpected error occurred: "https://registry.yarnpkg.com/@slicemachine%2Fadapter-universal: Not found".
Hi, @giuzntt. Welcome to the Prismic forum. Thanks for the detailed information you have provided about the error.
You mentioned you are using Next.js, and I can see that the @slicemachine/init package hasn't detected a framework. Have you already created your Next.js app? If so, could you provide a link to your code?
Thanks, @giuzntt, for providing your code. It looks like you’re using some older versions of Next.js, React, and our packages which need to be updated to be able to use the latest version of Slice Machine.
Can you update to the latest versions and let me know if the issue still occurs?
Afterwards, npx @slicemachine/init@latest should detect Next.js and install our Next.js Slice Machine adapter.
If you're still having issues, have you tried our Yarn workaround? Delete your yarn.lock file and then run the npx command again: npx @slicemachine/init@latest. Then try installing your modules using yarn install.
You should then be able to run your dev server using yarn dev and Slice Machine using npm run slicemachine.