Skip to content

Npm fails after 'Rebuild Container' #4308

Closed
@egamma

Description

@egamma
  1. Clone https://github.com/microsoft/vscode-remote-try-node into a container volume
  2. npm install works fine
  3. Run Rebuild Container
  4. npm install get the following error:
node@1493723f89c2:/workspaces/vscode-remote-try-node$ npm install
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module '/home/node/.vscode-server-insiders/data/User/workspaceStorage/fbaf90b076ac78e0d27774a5306a7fcd/ms-vscode.js-debug/bootloader.js'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1277:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:71:3)
    at internal/main/run_main_module.js:7:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Running node or npm fails with the same exception.

Metadata

Metadata

Labels

*not-reproducibleIssue cannot be reproduced by VS Code Team member as describedcontainersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions