# Prismic sm --setup error

**URL:** <https://community.prismic.io/t/prismic-sm-setup-error/3515>\
**Category:** Developing with Prismic\
**Created:** [January 11, 2021, 2:18pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515 "2021-01-11T14:18:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sid.turner.ellis](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sid.turner.ellis](https://community.prismic.io/u/sid.turner.ellis)\
**Post date:** [January 11, 2021, 2:18pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/1 "2021-01-11T14:18:16Z")

</div>

Hello, Im using next js and trying to install slice machine but i keep getting an error when running `prismic sm --setup` I have tried to this on multiple different project but get the same error.

The first time i run the command i get this error:  
$ prismic sm --setup  
√ Downloading files from server

- Installing dependencies  
npm ERR! code ERESOLVE  
npm ERR! ERESOLVE unable to resolve dependency tree  
npm ERR!  
npm ERR! While resolving: helloworld-prismic@0.1.0  
npm ERR! Found: react@17.0.1  
npm ERR! node\_modules/react  
npm ERR! react@"17.0.1" from the root project  
npm ERR!  
npm ERR! Could not resolve dependency:  
npm ERR! peer react@"^16.13.1" from next-slicezone@0.0.11  
npm ERR! node\_modules/next-slicezone  
npm ERR! next-slicezone@"\*" from the root project  
npm ERR!  
npm ERR! Fix the upstream dependency conflict, or retry  
npm ERR! this command with --force, or --legacy-peer-deps  
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.  
npm ERR!  
npm ERR! See C:\Users\sidtu\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\sidtu\AppData\Local\npm-cache\_logs\2021-01-11T13\_58\_13\_038Z-debug.log

Does anyone know what normally would cause this?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [January 11, 2021, 2:34pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/2 "2021-01-11T14:34:35Z")

</div>

Hello Sid,

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

Could you please check all the information given in this thread? It has a troubleshooting guide link too.

> [@Error running Slice Machine command](https://community.prismic.io/t/error-running-slice-machine-command/3504):
>
> I am following the quick start guide for Nuxt here: Running the slice machine setup command gives me the following error: It then hangs on 'Downloading files from server'. Any ideas would be much appreciated! Thanks in advance.

Let me know if it still doesn't solve the issue.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [January 12, 2021, 11:05am UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/4 "2021-01-12T11:05:53Z")

</div>

Hello Sid,

How are you doing?

Have you checked the troubleshooting guide? Are you still getting the error?

I’m eager to receive your feedback.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![ryan.huber](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/ryan.huber/32/1116_2.png) [@ryan.huber](https://community.prismic.io/u/ryan.huber)\
**Post date:** [February 5, 2021, 3:19am UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/5 "2021-02-05T03:19:12Z")

</div>

I am getting this same error and it appears that the react dependency has not been updated to handle the new React 17 release being used by the latest release of next. Is there any update on this issue?

---

<div class="post-metadata">

**Author:** ![ryan.huber](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/ryan.huber/32/1116_2.png) [@ryan.huber](https://community.prismic.io/u/ryan.huber)\
**Post date:** [February 5, 2021, 3:54am UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/6 "2021-02-05T03:54:41Z")

</div>

Looks like the issue I was having has to do with the way that npm checks dependencies in newer versions. I was able to get it to work when I switched to node 14.15.4 and npm vs 6.14.10

---

<div class="post-metadata">

**Author:** ![lihbr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/lihbr/32/7409_2.png) [@lihbr](https://community.prismic.io/u/lihbr)\
**Post date:** [February 17, 2021, 5:05pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/7 "2021-02-17T17:05:44Z")

</div>

Hey @sid.turner.ellis, @ryan.huber, sorry for the delay, the issue has been fixed!

You should not experience the issue anymore when running `$ prismic sm --setup` with NPM 7. If you downgraded to NPM 6 (Node 14) in the meantime, you can get back to 7 again! Just make sure to update `next-slicezone` to `0.0.13` or higher~ 😌

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [March 2, 2021, 9:24pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/8 "2021-03-02T21:24:03Z")

</div>

closed on March 2, 2021, 9:24pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:54pm UTC](https://community.prismic.io/t/prismic-sm-setup-error/3515/9 "2021-12-09T16:54:49Z")

</div>

Opened on December 9, 2021, 4:54pm UTC


