User Tools

Site Tools


wiki:node_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:node_troubleshooting [2023/10/11 13:17] – created antisawiki:node_troubleshooting [2025/03/18 13:21] (current) – add Class extends value undefined is not a constructor or null antisa
Line 29: Line 29:
   curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash   curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
   nvm install v14.21.3   nvm install v14.21.3
-  +
 ==== Tested on ==== ==== Tested on ====
   * Ubuntu 20.04   * Ubuntu 20.04
   * node v10.19.0   * node v10.19.0
 +
 +
 +===== Class extends value undefined is not a constructor or null =====
 +Happened when installing Coc tsserver in vim
 +  :CocInstall coc-tsserver
 +
 +Remove node npm directory:
 +  sudo rm -rf /usr/local/lib/node_modules/npm/
 +
 +Reinstall node
 +  curl -sL https://install-node.vercel.app/lts | bash
 +
 +==== Tested on ====
 +  * Ubuntu 22.04
 +  * node v22.14.0
  
 ====== See also ====== ====== See also ======
  
 ====== References ====== ====== References ======
 +  * https://stackoverflow.com/questions/70383636/all-npm-commands-error-with-typeerror-class-extends-value-undefined-is-not-a-co
  
wiki/node_troubleshooting.1697030236.txt.gz · Last modified: 2023/10/11 13:17 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki