# I encountered an error when running the command tutor dev launch. How can I fix it?

**URL:** <https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900>\
**Category:** Tutor Help\
**Created:** [September 12, 2024, 6:38am UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900 "2024-09-12T06:38:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quy\_n\_Dinh\_Ph\_m](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/quy_n_dinh_ph_m/32/6457_2.png) [@Quy\_n\_Dinh\_Ph\_m](https://discuss.openedx.org/u/Quy_n_Dinh_Ph_m)\
**Post date:** [September 12, 2024, 6:38am UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/1 "2024-09-12T06:38:15Z")

</div>

## =\> ERROR [nodejs-requirements 4/4] RUN --mount=type=bind,from=edx-platfo 0.0s

> importing cache manifest from openedx-dev:18.1.3-cache:

* * *

* * *

> [python-requirements 3/5] RUN --mount=type=bind,from=edx-platform,source=/requirements/edx/base.txt,target=/openedx/edx-platform/requirements/edx/base.txt --mount=type=cache,target=/openedx/.cache/pip,sharing=shared pip install -r /openedx/edx-platform/requirements/edx/base.txt:

* * *

* * *

> [nodejs-requirements 4/4] RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json --mount=type=bind,from=edx-platform,source=/scripts/copy-node-modules.sh,target=/openedx/edx-platform/scripts/copy-node-modules.sh --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --registry=[https://registry.npmjs.org/:](https://registry.npmjs.org/:)

* * *

## Dockerfile:113

112 | WORKDIR /openedx/edx-platform  
113 | \>\>\> RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json   
114 | \>\>\> --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json   
115 | \>\>\> --mount=type=bind,from=edx-platform,source=/scripts/copy-node-modules.sh,target=/openedx/edx-platform/scripts/copy-node-modules.sh   
116 | \>\>\> --mount=type=cache,target=/root/.npm,sharing=shared   
117 | \>\>\> npm clean-install --no-audit --registry=$NPM\_REGISTRY

| 118 |
| --- |
| ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref b3885d73-93eb-42e5-a3f9-fd284603e5ac::r95xgp99ofxmf5cbb2x992vz4: “/scripts/copy-node-modules.sh”: not found |
| Error: Command failed with status 1: docker buildx build --tag=openedx-dev:18.1.3 --output=type=docker --target=development --build-arg=APP\_USER\_ID=1000 --cache-from=type=registry,ref=openedx-dev:18.1.3-cache --build-context=edx-platform=/home/pqdinh/.local/share/tutor/edx-platform /home/pqdinh/.local/share/tutor/env/build/openedx |

---

<div class="post-metadata">

**Author:** ![Juan-Carlos](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/juan-carlos/32/7075_2.png) [@Juan-Carlos](https://discuss.openedx.org/u/Juan-Carlos)\
**Post date:** [September 12, 2024, 1:58pm UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/2 "2024-09-12T13:58:55Z")

</div>

Hi [Quy\_n\_Dinh\_Ph\_m](https://discuss.openedx.org/u/Quy_n_Dinh_Ph_m)[Quyển Đình Phạm](https://discuss.openedx.org/u/Quy_n_Dinh_Ph_m)

try

> tutor dev launch --no-cache

---

<div class="post-metadata">

**Author:** ![Quy\_n\_Dinh\_Ph\_m](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/quy_n_dinh_ph_m/32/6457_2.png) [@Quy\_n\_Dinh\_Ph\_m](https://discuss.openedx.org/u/Quy_n_Dinh_Ph_m)\
**Post date:** [September 13, 2024, 7:38am UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/3 "2024-09-13T07:38:13Z")

</div>

> [@Juan-Carlos](#):
>
> tutor dev launch --no-cache

thank you, but

pqdinh@pqdinh-PRIME-H470M2-FPT:~/.local/share/tutor$ tutor dev launch --no-cache  
Usage: tutor dev launch [OPTIONS]  
Try ‘tutor dev launch -h’ for help.

Error: No such option: --no-cache  
pqdinh@pqdinh-PRIME-H470M2-FPT:~/.local/share/tutor$

---

<div class="post-metadata">

**Author:** ![Juan-Carlos](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/juan-carlos/32/7075_2.png) [@Juan-Carlos](https://discuss.openedx.org/u/Juan-Carlos)\
**Post date:** [September 13, 2024, 12:18pm UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/4 "2024-09-13T12:18:07Z")

</div>

If I’m wrong, I’m sorry.  
try deleting docker cache

> docker constructor pruning --all

and then try again

> tutor dev launch

---

<div class="post-metadata">

**Author:** ![Hamza\_Mughal](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/hamza_mughal/32/7497_2.png) [@Hamza\_Mughal](https://discuss.openedx.org/u/Hamza_Mughal)\
**Post date:** [October 10, 2024, 11:48am UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/5 "2024-10-10T11:48:47Z")

</div>

# tutor dev launch

```
    Interactive platform configuration

```

# ================================================== As you are not running this platform in production, we automatically set the following configuration values: LMS\_HOST = [local.edly.io](http://local.edly.io) CMS\_HOST = [studio.local.edly.io](http://studio.local.edly.io) ENABLE\_HTTPS = False Your platform name/title [Al Nafi] Your public contact email address [contact@local.edly.io] The default language code for the platform [en] Configuration saved to /home/devapi/.local/share/tutor/config.yml Environment generated in /home/devapi/.local/share/tutor/env

```
    Building Docker images

```

======================================  
Building image openedx-dev:18.1.3  
docker buildx build --tag=openedx-dev:18.1.3 --output=type=docker --target=development --build-arg=APP\_USER\_ID=1001 --cache-from=type=registry,ref=openedx-dev:18.1.3-cache /home/devapi/.local/share/tutor/env/build/openedx  
[+] Building 9.2s (11/71) docker:default  
=\> [internal] load build definition from Dockerfile 0.0s  
=\> =\> transferring dockerfile: 11.57kB 0.0s  
=\> [internal] load .dockerignore 0.0s  
=\> =\> transferring context: 2B 0.0s  
=\> resolve image config for [docker.io/docker/dockerfile:1](http://docker.io/docker/dockerfile:1) 2.6s  
=\> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5 0.0s  
=\> [internal] load metadata for [docker.io/powerman/dockerize:0.19.0](http://docker.io/powerman/dockerize:0.19.0) 2.5s  
=\> [internal] load metadata for [Docker Hub Container Image Library | App Containerization](http://docker.io/library/ubuntu:20.04) 2.5s  
=\> ERROR importing cache manifest from openedx-dev:18.1.3-cache

I tried everything, even tried changing the specific docker and docker compose versions, still stuck at this point.

---

<div class="post-metadata">

**Author:** ![emartus](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/emartus/32/5604_2.png) [@emartus](https://discuss.openedx.org/u/emartus)\
**Post date:** [October 29, 2024, 7:14pm UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/6 "2024-10-29T19:14:11Z")

</div>

I am also encountering this on using both Tutor 18.1.3 and 18.1.4 released last week. I did not have this issue when I first upgraded to 18.1.3 about two weeks ago, but when I tried rebuilding my environment today this started happening.

I have tried running `docker system prune -a` and `docker builder prune -a` with no luck getting past this step again.

It does not appear any of the mounts in this line from the dockerfile are working as expected

```auto
RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json \
    --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json \
    --mount=type=bind,from=edx-platform,source=/scripts/copy-node-modules.sh,target=/openedx/edx-platform/scripts/copy-node-modules.sh \
    --mount=type=cache,target=/root/.npm,sharing=shared \
    npm clean-install --no-audit --registry=$NPM_REGISTRY

```

While troubleshooting I attempted to split the `npm clean-install --no-audit --registry=$NPM_REGISTRY` into its own step, but clean-install fails due to `package-lock.json` not existing either.

---

<div class="post-metadata">

**Author:** ![Jeff\_Cohen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jeff_cohen/32/3417_2.png) [@Jeff\_Cohen](https://discuss.openedx.org/u/Jeff_Cohen)\
**Post date:** [November 1, 2024, 12:33pm UTC](https://discuss.openedx.org/t/i-encountered-an-error-when-running-the-command-tutor-dev-launch-how-can-i-fix-it/13900/7 "2024-11-01T12:33:58Z")

</div>

In case it helps others, we realized that even after we upgraded to redwood we had forgotten to set the tutor config values for `EDX_PLATFORM_VERSION` and `DOCKER_IMAGE_OPENEDX`. I believe that updating those values to align with redwood resolved the errors @emartus had reported. The `copy-node-modules.sh` file did not exist in Palm.4 which we were upgrading from. So as long as we were using that docker image, the file was not found. It was not an issuing with the mounting mechanism itself.
