Skip to content

Document what can cause NODE_MODULE_VERSION errors #1794

Closed

Description

@manish9363
  • Web Browser: safari and chrome
  • Local OS: mac 10.15.4
  • Remote OS:
  • Remote Architecture:
  • code-server --version: 3.4.0

Screen Shot 2020-06-10 at 1 37 08 PM

Activity

  1. esmondmissen commented on Jun 11, 2020

    @esmondmissen

    I am having the same experience with the following error in the console: Extension host terminated unexpectedly. Code: – 0 – " Signal: " – null

  2. shisoft commented on Jun 11, 2020

    @shisoft

    Having the same problem in ARM64, x86 is all fine

  3. nhooyr commented on Jun 11, 2020

    @nhooyr
    Contributor

    Should be fixed in the latest release.

    Please upgrade!

    https://github.com/cdr/code-server/releases/tag/v3.4.1

  4. shisoft commented on Jun 11, 2020

    @shisoft

    Problems remains in 3.4.1

  5. reopened this on Jun 11, 2020
  6. shisoft commented on Jun 11, 2020

    @shisoft

    Here is my obversation:
    It does not fail every time and every time it fails, there is no logs on server side. Every time it fails, plugins does not respond.

    
    info  Using config file ~/.config/code-server/config.yaml
    debug parsed command line {"args":{"_":[],"bind-addr":"0.0.0.0:8080","auth":"none","password":"325cf28c15008fd586c24a62"}}
    debug spawned inner process 6128
    debug parsed command line {"args":{"_":[],"log":"debug"}}
    debug parsed command line {"args":{"_":[],"bind-addr":"0.0.0.0:8080","auth":"none","password":"325cf28c15008fd586c24a62"}}
    debug wrapper 6109 received message from 6128 {"message":{"type":"handshake"}}
    debug inner process 6128 received message from 6109 {"message":{"type":"handshake"}}
    info  Using user-data-dir ~/.local/share/code-server
    info  code-server 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
    info  HTTP server listening on http://0.0.0.0:8080
    info����- No authentication
    info����- Not serving HTTPS
    debug forking vs code...
    debug got message from vs code {"message":{"type":"ready"}}
    debug setting up vs code...
    debug vscode got message from code-server {"message":{"type":"init","id":"UiPZ2rb60dd9u0XQc5CG7klY","options":{"args":{"_":[],"bind-addr":"0.0.0.0:8080","auth":"none","password":"325cf28c15008fd586c24a62","log":"debug","verbose":false,"config":"/home/shisoft/.config/code-server/config.yaml","user-data-dir":"/home/shisoft/.local/share/code-server","extensions-dir":"/home/shisoft/.local/share/code-server/extensions"},"remoteAuthority":"192.168.1.215:8080","startPath":{"url":"/home/shisoft/Code/bifrost","workspace":false}}}}
    debug got message from vs code {"message":{"type":"options","id":"UiPZ2rb60dd9u0XQc5CG7klY","options":{"workbenchWebConfiguration":{"folderUri":{"$mid":1,"path":"/home/shisoft/Code/bifrost","scheme":"vscode-remote","authority":"192.168.1.215:8080"},"remoteAuthority":"192.168.1.215:8080","logLevel":1,"workspaceProvider":{"payload":[["userDataPath","/home/shisoft/.local/share/code-server"]]}},"remoteUserDataUri":{"$mid":1,"path":"/home/shisoft/.local/share/code-server","scheme":"vscode-remote","authority":"192.168.1.215:8080"},"productConfiguration":{"nameShort":"Code - OSS","nameLong":"Code - OSS","applicationName":"code-oss","dataFolderName":".vscode-oss","win32MutexName":"vscodeoss","licenseName":"MIT","licenseUrl":"https://github.com/Microsoft/vscode/blob/master/LICENSE.txt","win32DirName":"Microsoft Code OSS","win32NameVersion":"Microsoft Code OSS","win32RegValueName":"CodeOSS","win32AppId":"{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}","win32x64AppId":"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}","win32UserAppId":"{{C6065F05-9603-4FC4-8101-B9781A25D88E}","win32x64UserAppId":"{{C6065F05-9603-4FC4-8101-B9781A25D88E}","win32AppUserModelId":"Microsoft.CodeOSS","win32ShellNameShort":"C&ode - OSS","darwinBundleIdentifier":"com.visualstudio.code.oss","linuxIconName":"com.visualstudio.code.oss","licenseFileName":"LICENSE.txt","reportIssueUrl":"https://github.com/cdr/code-server/issues/new","urlProtocol":"code-oss","extensionAllowedProposedApi":["ms-vscode.vscode-js-profile-table","ms-vscode.references-view"],"builtInExtensions":[{"name":"ms-vscode.node-debug","version":"1.44.5","repo":"https://github.com/Microsoft/vscode-node-debug","metadata":{"id":"b6ded8fb-a0a0-4c1c-acbd-ab2a3bc995a6","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.node-debug2","version":"1.42.2","repo":"https://github.com/Microsoft/vscode-node-debug2","metadata":{"id":"36d19e17-7569-4841-a001-947eb18602b2","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.references-view","version":"0.0.51","repo":"https://github.com/Microsoft/vscode-reference-view","metadata":{"id":"dc489f46-520d-4556-ae85-1f9eab3c412d","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.js-debug-companion","version":"1.0.0","repo":"https://github.com/microsoft/vscode-js-debug-companion","metadata":{"id":"99cb0b7f-7354-4278-b8da-6cc79972169d","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.js-debug-nightly","version":"2020.4.2917","repo":"https://github.com/Microsoft/vscode-js-debug","metadata":{"id":"7acbb4ce-c85a-49d4-8d95-a8054406ae97","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}},{"name":"ms-vscode.vscode-js-profile-table","version":"0.0.2","repo":"https://github.com/Microsoft/vscode-js-debug","metadata":{"id":"7e52b41b-71ad-457b-ab7e-0620f1fc4feb","publisherId":{"publisherId":"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee","publisherName":"ms-vscode","displayName":"Microsoft","flags":"verified"},"publisherDisplayName":"Microsoft"}}],"commit":"48f7c2724827e526eeaa6c2c151c520f48a61259","date":"2020-06-04T10:39:14Z","version":"1.45.1","extensionsGallery":{"serviceUrl":"https://extensions.coder.com/api","itemUrl":"","controlUrl":"","recommendationsUrl":""}},"nlsConfiguration":{"locale":"en","availableLanguages":{}},"commit":"48f7c2724827e526eeaa6c2c151c520f48a61259"}}}
    debug vscode got message from code-server {"message":{"type":"socket","query":{"type":"Management","reconnectionToken":"3ff95085-7351-4b3f-b172-f0f8ea3a7524","reconnection":"false","skipWebSocketFrames":"false"}}}
    debug vscode got message from code-server {"message":{"type":"socket","query":{"type":"ExtensionHost","reconnectionToken":"adf5f796-2325-4c94-aa1d-6d4be17daa6d","reconnection":"false","skipWebSocketFrames":"false"}}}
    
    
  7. esmondmissen commented on Jun 12, 2020

    @esmondmissen

    I managed to get my installation working. I re-installed Xcode-cli tools and had to do an npm rebuild on the vscode folder. I'm not sure which of these led to the fix but I'm not getting the error anymore. The error I was getting before the nom rebuild was:

    Error: The module '/usr/local/Cellar/code-server/3.4.1/libexec/lib/vscode/node_modules/spdlog/build/Release/spdlog.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 83. This version of Node.js requires
    NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
    the module (for instance, using npm rebuild or npm install).

  8. nhooyr commented on Jun 12, 2020

    @nhooyr
    Contributor

    Very weird, I just installed v3.4.1 from brew and it works fine for me. That error indicates your node is out of date but if you installed from homebrew it should be using the latest unless you pinned it yourself.

  9. flolanger commented on Jun 12, 2020

    @flolanger

    It always happens to me after I did a fresh installation. I can work normally for the first time after I run the install script. But as soon as I reload once this error keeps happening until I run the install script again...

  10. nhooyr commented on Jun 13, 2020

    @nhooyr
    Contributor

    @flolanger you're on macOS as well?

  11. storm2513 commented on Jun 19, 2020

    @storm2513

    @nhooyr happens to me as well. In my case, it is caused by NVM usage. Latest node 12 LTS installed via nvm and used by default in system and node 14 installed via brew. Looks like code-server also uses node from NVM.

    The only working solution for me is usage of standalone release. But macOS asked about 5 times for permission because of untrusted developer (binary version of nodejs and so on).

  12. sharkymark commented on Jun 20, 2020

    @sharkymark

    I'm getting same problem as esmondmissen - but reinstall of xcode clt didn't fix. I did npm rebuild, but didn't know where vs code folder is. Still have error ( see screenshot ). I'm on macOS Mojave
    Screen Shot 2020-06-20 at 6 28 49 AM

  13. nhooyr commented on Jun 22, 2020

    @nhooyr
    Contributor

    @mtm20176 How are you running and using code-server?

  14. 11 remaining items

  15. added this to the Backlog milestone on Apr 29, 2021
  16. self-assigned this
    on May 10, 2021
  17. modified the milestones: v3.10.1, 3.11.0 on May 17, 2021
  18. modified the milestones: 3.10.2, 3.11.0 on May 21, 2021
  19. cangetright commented on Jul 2, 2021

    @cangetright
  20. locked as resolved and limited conversation to collaborators on Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsDocumentation related

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions