I'm trying to execute the command to start the project in Next.JS, which already exists, but it's saying that the dependency package below no longer exists:
Initial command:
Detected framework universal (no framework) and package manager yarn Began core dependencies installation with yarn ... (running in background) Logged in as mail@mail.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 > @floating-ui/react-dom-interactions@0.9.3: 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?
Hi, @david14. Welcome to the Prismic forum. Thanks for reaching out to let us know you’re experiencing a similar error. Can you confirm what framework you are using?
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.
I have the same issue, tried to install npx @slicemachine/init@latest but get the npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@slicemachine%2fadapter-universal - Not found npm ERR! 404 npm ERR! 404 '@slicemachine/adapter-universal@latest' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.