[GH-ISSUE #2300] Cannot start dev environment because of missing node modules #1635

Closed
opened 2026-02-26 07:31:51 +03:00 by kerem · 2 comments
Owner

Originally created by @geek-at on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2300

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Not relevant
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
I tried to start the dev environment using the script scripts/start_dev so I can implement the DNS standalone feature from #2252 but the containers don't start.

It seems it's missing some npm packages which can't be downloaded or found.

yarn install v1.22.19
yarn install v1.22.19
[1/4] Resolving packages...
[1/4] Resolving packages...
[2/4] Fetching packages...
[2/4] Fetching packages...
error https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/usr/local/share/.cache/yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/fp/mergeAllWith.js'"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "EEXIST: file already exists, mkdir '/usr/local/share/.cache/yarn/v6/npm-rimraf-2.6.3-b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab-integrity/node_modules/rimraf'"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Uncaught Error: Cannot find module '/app/node_modules/nodemon/bin/nodemon.js'

So the containers all crash except for the database

Nginx Proxy Manager Version
latest git commit d2688cf

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/NginxProxyManager/nginx-proxy-manager.git /tmp/nginxtest
  2. cd /tmp/nginxtest/scripts
  3. run ./start-dev
  4. wait for 1 minute after it ran through (in the meantime http://127.0.0.1:3080 briefly works
  5. check docker logs npm_core as it should show the same error I posted above.
  6. All containers except the database should be crashed by now

Expected behavior
Dev environment should start and be accessible via http://127.0.0.1:3081

Screenshots
crashed container

Operating System
Tested with:

  • Windows 10 Pro + WSL 2 (Ubuntu) + Docker 20.10.17
  • Alpine Linux v3.16 + Docker 20.10.16
Originally created by @geek-at on GitHub (Oct 2, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2300 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Not relevant - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** I tried to start the dev environment using the script `scripts/start_dev` so I can implement the DNS standalone feature from #2252 but the containers don't start. It seems it's missing some npm packages which can't be downloaded or found. ``` yarn install v1.22.19 yarn install v1.22.19 [1/4] Resolving packages... [1/4] Resolving packages... [2/4] Fetching packages... [2/4] Fetching packages... error https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/usr/local/share/.cache/yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/fp/mergeAllWith.js'" info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. error https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "EEXIST: file already exists, mkdir '/usr/local/share/.cache/yarn/v6/npm-rimraf-2.6.3-b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab-integrity/node_modules/rimraf'" info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Uncaught Error: Cannot find module '/app/node_modules/nodemon/bin/nodemon.js' ``` So the containers all crash except for the database **Nginx Proxy Manager Version** latest git commit [d2688cf](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/d2688cf08c07b9d9c3ab4aa66a2e2102fd7a43f3) **To Reproduce** Steps to reproduce the behavior: 1. git clone https://github.com/NginxProxyManager/nginx-proxy-manager.git /tmp/nginxtest 2. cd /tmp/nginxtest/scripts 3. run `./start-dev` 4. wait for 1 minute after it ran through (in the meantime http://127.0.0.1:3080 briefly works 5. check `docker logs npm_core` as it should show the same error I posted above. 6. All containers except the database should be crashed by now **Expected behavior** Dev environment should start and be accessible via `http://127.0.0.1:3081` **Screenshots** ![crashed container](https://pictshare.net/tiyh5y.png) **Operating System** Tested with: - Windows 10 Pro + WSL 2 (Ubuntu) + Docker 20.10.17 - Alpine Linux v3.16 + Docker 20.10.16
kerem 2026-02-26 07:31:51 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1933238318 --> @github-actions[bot] commented on GitHub (Feb 8, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 24, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2746694490 --> @github-actions[bot] commented on GitHub (Mar 24, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1635
No description provided.