neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

Required updating deps when installing on M1 #342

Closed sax closed 2 years ago

sax commented 2 years ago

Hello! I had to update some dependencies in order to install this plugin on my M1 Mac. I have been stubbornly trying not to install Rosetta 2, to force myself to try to solve problems with arm compatibility when I find them.

The key thing was updating esbuild, since the older version only ships with an x86 binary. I also try to keep to the latest version of node possible, and found that @types/node ^10.12.0 would not install even with npm install --force.

-    "@types/node": "^10.12.0",
+    "@types/node": "^17.0.8",
     "coc.nvim": "^0.0.81-next.8",
-    "esbuild": "^0.8.29",
-    "semver": "^7.3.2",
+    "esbuild": "^0.14.11",
+    "semver": "^7.3.5",
     "vscode-languageserver-protocol": "^3.16.0",
     "which": "^2.0.2"

I decided to file an issue rather than a pull request, since I didn't want to presume updating @types/node.

sax commented 2 years ago

Thank you!