# An unexpected error occurred: "https://registry.yarnpkg.com/@slicemachine%2fadapter-universal: Not found"

**URL:** <https://community.prismic.io/t/an-unexpected-error-occurred-https-registry-yarnpkg-com-slicemachine-2fadapter-universal-not-found/13184>\
**Category:** Developing with Prismic\
**Tags:** nextjs, slice-machine\
**Created:** [May 23, 2023, 8:24pm UTC](https://community.prismic.io/t/an-unexpected-error-occurred-https-registry-yarnpkg-com-slicemachine-2fadapter-universal-not-found/13184 "2023-05-23T20:24:36Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![louise.findlay](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/louise.findlay/32/5719_2.png) [@louise.findlay](https://community.prismic.io/u/louise.findlay)\
**Post date:** [May 31, 2023, 9:11am UTC](https://community.prismic.io/t/an-unexpected-error-occurred-https-registry-yarnpkg-com-slicemachine-2fadapter-universal-not-found/13184/13 "2023-05-31T09:11:29Z")

</div>

Hi, @giuzntt. I ran the following commands to update your project's packages.

```auto
npm update --force
npm install next@latest --force
npm install @prismicio/react@latest --force
npm install react-dom@latest --force
npm install react@latest --force
npm install @prismicio/next@latest --force

```

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](https://community.prismic.io/t/next-js-crash-course-with-yarn-2-workaround/13129)? 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`.

Thanks,  
Louise

---

_[View the full topic](https://community.prismic.io/t/an-unexpected-error-occurred-https-registry-yarnpkg-com-slicemachine-2fadapter-universal-not-found/13184)._
