Skip to content

got error when running code-server after being installed. #2285

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

Closed
chocoford opened this issue Nov 10, 2020 · 7 comments
Closed

got error when running code-server after being installed. #2285

chocoford opened this issue Nov 10, 2020 · 7 comments

Comments

@chocoford
Copy link

chocoford commented Nov 10, 2020

got

internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module '/usr/local/bin/out/node/entry.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

but succeeding in running code-server with sudo systemctl enable --now code-server@$USER.

Moreover, when running with command sudo systemctl enable --now code-server@$USER, got same problem as #1888

  • Web Browser: Safari, Chrome, VSAPP in iPadOS
  • Local OS: MacOS, iPadOS
  • Remote OS: Ubuntu 18.04
  • Remote Architecture: x86_64
  • code-server --version: 3.6.0
@code-asher
Copy link
Member

code-asher commented Nov 10, 2020 via email

@chocoford
Copy link
Author

chocoford commented Nov 11, 2020

I installed code-server with command copied from readme, and start with sudo systemctl enable --now code-server@$USER.
By the way, current version (which is 3.6.0) is simply upgrade by reinstalling code-server with the command in ReadMe.

@chocoford
Copy link
Author

chocoford commented Nov 11, 2020

Ok, the problem has been solved by removing code-server in /use/local/bin and reinstalling with scripts.
And #1888 can be solved by just run code-server rather than run sudo systemctl enable --now code-server@$USER

But still suffer from many unexpected problems:

  1. Color scheme cannot be saved. I must set the color scheme(to dark) every time I start VSApp.
  2. code-server does not recognize launch.json in .vscode folder.
    Problems described above are not present in my another machine (also Ubuntu18.04)

@chocoford chocoford reopened this Nov 11, 2020
@code-asher
Copy link
Member

code-asher commented Nov 11, 2020 via email

@ozancakir
Copy link

hello, is there any fix yet ? Should I downgrade to 3.6.0? Thanks for such a powerful tool

@code-asher
Copy link
Member

code-asher commented Nov 18, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Dec 8, 2020

Should be fixed in the latest release!

@nhooyr nhooyr closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants