Give the dev container its own node_modules
npm installs the build tools' native binaries for the platform it runs on, so a folder shared with the host only ever held Linux's or macOS's. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
co-authored by
Claude Opus 5
parent
1352533667
commit
4470c2ed87
@@ -8,6 +8,9 @@ services:
|
|||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
# Its own node_modules: npm installs the build tools' native binaries for Linux here and for
|
||||||
|
# the host's platform there, and a shared folder only ever holds one of them.
|
||||||
|
- /app/node_modules
|
||||||
environment:
|
environment:
|
||||||
APP_KEY: ${APP_KEY:-}
|
APP_KEY: ${APP_KEY:-}
|
||||||
APP_URL: http://localhost:8000
|
APP_URL: http://localhost:8000
|
||||||
|
|||||||
Reference in New Issue
Block a user