Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: copy .npmrc into docker container #449

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 16, 2023

  1. fix: copy .npmrc into docker container

    We need set shamefully-hoist to true, or node won't find dependencies
    
    log below:
    node:internal/modules/esm/resolve:844
      throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
            ^
    
    Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'send' imported from /tmp/t/dist/server/entry.mjs
        at packageResolve (node:internal/modules/esm/resolve:844:9)
        at moduleResolve (node:internal/modules/esm/resolve:901:20)
        at defaultResolve (node:internal/modules/esm/resolve:1121:11)
        at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
        at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
        at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
        at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
        at link (node:internal/modules/esm/module_job:84:36) {
      code: 'ERR_MODULE_NOT_FOUND'
    }
    zhullyb committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    8a45a86 View commit details
    Browse the repository at this point in the history